mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-24 18:24:31 +01:00
better misc example
This commit is contained in:
parent
42a1e13db4
commit
68a3dad2d7
@ -61,5 +61,15 @@ print inv.get_user('test')
|
|||||||
print inv.get_groups('test')
|
print inv.get_groups('test')
|
||||||
inv.del_user('test')
|
inv.del_user('test')
|
||||||
|
|
||||||
|
groups = [
|
||||||
|
'cn=hrpeople,ou=Groups,dc=example,dc=org',
|
||||||
|
'cn=itpeople,ou=Groups,dc=example,dc=org',
|
||||||
|
]
|
||||||
|
inv.add_to_groups('jwatson', groups)
|
||||||
|
ret = inv.get_groups('jwatson')
|
||||||
|
print ret
|
||||||
|
inv.del_from_groups('jwatson', ['cn=hrpeople,ou=Groups,dc=example,dc=org'])
|
||||||
|
inv.del_from_groups('jwatson', ['cn=hrpeople,ou=Groups,dc=example,dc=org'])
|
||||||
|
|
||||||
|
|
||||||
print inv.group_attrs
|
print inv.group_attrs
|
||||||
|
Loading…
Reference in New Issue
Block a user