mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-04 20:37:48 +02:00
better misc example
This commit is contained in:
parent
42a1e13db4
commit
68a3dad2d7
1 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue