better misc example

This commit is contained in:
kakwa 2015-06-17 00:50:47 +02:00
parent 42a1e13db4
commit 68a3dad2d7
1 changed files with 10 additions and 0 deletions

View File

@ -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