Methode .rights() et non plus recherche par droits bruts
This commit is contained in:
parent
9485236f2f
commit
f66fa61993
1 changed files with 1 additions and 2 deletions
|
@ -10,8 +10,7 @@ txts = []
|
||||||
adhs = ldap.search(u"droits=*")
|
adhs = ldap.search(u"droits=*")
|
||||||
droits={}
|
droits={}
|
||||||
for adh in adhs:
|
for adh in adhs:
|
||||||
for droit in adh['droits']:
|
for droit in adh.rights():
|
||||||
droit = unicode(droit)
|
|
||||||
droits[droit] = droits.get(droit, []) + [adh]
|
droits[droit] = droits.get(droit, []) + [adh]
|
||||||
|
|
||||||
d=droits.keys()
|
d=droits.keys()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue