mirror of
https://github.com/kakwa/ldapcherry
synced 2024-12-24 22:00:03 +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')
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user