[lc_ldap] penser à stocker le bind_dn [attributs] typo
This commit is contained in:
parent
8c9bf151bb
commit
ae7d33c267
2 changed files with 3 additions and 1 deletions
|
@ -533,7 +533,7 @@ class controle(Attr):
|
|||
def parse_value(self, ctrl, ldif):
|
||||
if ctrl not in [u"", u"c", u"p", u"cp", u"pc"]:
|
||||
raise ValueError("control peut prendre les valeurs [c][p]")
|
||||
if ctrl = u'pc':
|
||||
if ctrl == u'pc':
|
||||
self.value = u'cp'
|
||||
else:
|
||||
self.value = ctrl
|
||||
|
|
|
@ -114,6 +114,8 @@ class lc_ldap(ldap.ldapobject.LDAPObject):
|
|||
self.conn = self.bind_s(dn, cred)
|
||||
else:
|
||||
self.conn = self.simple_bind_s()
|
||||
self.bind_dn = dn
|
||||
self.droits = [] # Penser à stocker les droits du bind_dn :)
|
||||
|
||||
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