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