mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] add debugging in ldap init (#365)
This commit is contained in:
parent
a6639c4530
commit
0dbec4fa62
1 changed files with 4 additions and 4 deletions
|
@ -78,14 +78,14 @@ def tools_ldapinit():
|
|||
for rdn, attr_dict in ldap_map['parents'].items():
|
||||
try:
|
||||
auth.add(rdn, attr_dict)
|
||||
except:
|
||||
pass
|
||||
except Exception as e:
|
||||
logger.warn("Error when trying to inject '%s' -> '%s' into ldap: %s" % (rdn, attr_dict, e))
|
||||
|
||||
for rdn, attr_dict in ldap_map['children'].items():
|
||||
try:
|
||||
auth.add(rdn, attr_dict)
|
||||
except:
|
||||
pass
|
||||
except Exception as e:
|
||||
logger.warn("Error when trying to inject '%s' -> '%s' into ldap: %s" % (rdn, attr_dict, e))
|
||||
|
||||
admin_dict = {
|
||||
'cn': 'admin',
|
||||
|
|
Loading…
Add table
Reference in a new issue