mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Don't fail at LDAP entry addition
This commit is contained in:
parent
213ba87716
commit
0a75fef883
1 changed files with 4 additions and 2 deletions
|
@ -51,10 +51,12 @@ def tools_ldapinit(password=None):
|
||||||
ldap_map = yaml.load(f)
|
ldap_map = yaml.load(f)
|
||||||
|
|
||||||
for rdn, attr_dict in ldap_map['parents'].items():
|
for rdn, attr_dict in ldap_map['parents'].items():
|
||||||
yldap.add(rdn, attr_dict)
|
try: yldap.add(rdn, attr_dict)
|
||||||
|
except: pass
|
||||||
|
|
||||||
for rdn, attr_dict in ldap_map['children'].items():
|
for rdn, attr_dict in ldap_map['children'].items():
|
||||||
yldap.add(rdn, attr_dict)
|
try: yldap.add(rdn, attr_dict)
|
||||||
|
except: pass
|
||||||
|
|
||||||
admin_dict = {
|
admin_dict = {
|
||||||
'cn': 'admin',
|
'cn': 'admin',
|
||||||
|
|
Loading…
Add table
Reference in a new issue