From 991f8ee72d8aa608b995615b33b3e0873c965a35 Mon Sep 17 00:00:00 2001 From: kakwa Date: Sat, 16 May 2015 19:15:40 +0200 Subject: [PATCH] misc role --- misc/debug_roles.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/misc/debug_roles.py b/misc/debug_roles.py index 6bf2dae..6df2a0d 100644 --- a/misc/debug_roles.py +++ b/misc/debug_roles.py @@ -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) +