Auth driver for ldap. Includes FakeLdapDriver.
It should be easy to create a replacement for this driver supporting
other backends by creating another class that exposes the same
public methods.
-
class nova.auth.ldapdriver.FakeLdapDriver
Bases: nova.auth.ldapdriver.LdapDriver
Fake Ldap Auth driver
-
class nova.auth.ldapdriver.LdapDriver
Bases: object
Ldap Auth driver
Defines enter and exit and therefore supports the with/as syntax.
-
add_role(*args, **kwargs)
-
add_to_project(*args, **kwargs)
-
create_project(*args, **kwargs)
-
create_user(*args, **kwargs)
-
delete_project(*args, **kwargs)
-
delete_user(*args, **kwargs)
-
get_project(*args, **kwargs)
-
get_projects(*args, **kwargs)
-
get_user(*args, **kwargs)
-
get_user_from_access_key(*args, **kwargs)
-
get_user_roles(*args, **kwargs)
-
get_users(*args, **kwargs)
-
has_role(*args, **kwargs)
-
is_in_project(*args, **kwargs)
-
modify_project(*args, **kwargs)
-
modify_user(*args, **kwargs)
-
remove_from_project(*args, **kwargs)
-
remove_role(*args, **kwargs)
-
nova.auth.ldapdriver.sanitize(fn)
Decorator to sanitize all args