[lc_ldap] bugfix :S
This commit is contained in:
parent
05e7c18d79
commit
6c35fc87b6
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class lc_ldap(ldap.ldapobject.LDAPObject):
|
|||
if dn:
|
||||
self.conn = self.bind_s(dn, cred)
|
||||
self.dn = dn
|
||||
self.droits = self.conn.search_s(dn, 0, attrlist=['droits'])[1].get('droits', [])
|
||||
self.droits = self.search_s(dn, ldap.SCOPE_BASE, attrlist=['droits'])[0][1].get('droits', [])
|
||||
else:
|
||||
self.conn = self.simple_bind_s()
|
||||
self.dn = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue