[lc_ldap], on rajoute les droits
This commit is contained in:
parent
22b173a2d4
commit
05e7c18d79
1 changed files with 2 additions and 0 deletions
|
@ -102,9 +102,11 @@ 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', [])
|
||||
else:
|
||||
self.conn = self.simple_bind_s()
|
||||
self.dn = None
|
||||
self.droits = []
|
||||
|
||||
def search(self, filterstr, mode='ro', dn= base_dn, scope= 2, sizelimit=400):
|
||||
res = self.search_ext_s(dn, scope, filterstr, sizelimit=sizelimit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue