mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 01:14:21 +01:00
misc role
This commit is contained in:
parent
6289f62c6c
commit
991f8ee72d
@ -18,3 +18,11 @@ class CustomDumper(yaml.SafeDumper):
|
||||
inv = Roles('./conf/roles.yml')
|
||||
print
|
||||
print inv.dump_nest()
|
||||
|
||||
groups = {
|
||||
'ad' : ['Domain Users', 'Domain Users 2'],
|
||||
'ldap': ['cn=users,ou=group,dc=example,dc=com']
|
||||
}
|
||||
|
||||
print inv.get_roles(groups)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user