mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
host, service: fix adding host/svc with a cert
ipaldap.LDAPEntry expects that entry attributes, if multi-valued, are lists. The recent cert refactoring made it possible to pass certificate values from options directly to LDAPEntry. This should now be handled in appropriate general way in baseldap.LDAPCreate since if options.get() is called, it returns tuple instead of list which confuses ipaldap. https://pagure.io/freeipa/issue/7077 Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
committed by
Tomas Krizek
parent
1ff356241c
commit
7d217c8c9b
@@ -691,7 +691,6 @@ class host_add(LDAPCreate):
|
||||
# save the password so it can be displayed in post_callback
|
||||
setattr(context, 'randompassword', entry_attrs['userpassword'])
|
||||
|
||||
entry_attrs['usercertificate'] = options.get('usercertificate', [])
|
||||
entry_attrs['managedby'] = dn
|
||||
entry_attrs['objectclass'].append('ieee802device')
|
||||
entry_attrs['objectclass'].append('ipasshhost')
|
||||
|
||||
Reference in New Issue
Block a user