mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-04 04:17:43 +02:00
misc role
This commit is contained in:
parent
6289f62c6c
commit
991f8ee72d
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue