Fake LDAP server for test harness.
This class does very little error checking, and knows nothing about ldap class definitions. It implements the minimum emulation of the python ldap library to work with nova.
Bases: object
Fake LDAP connection.
Add an object with the specified attributes at dn.
Remove the ldap object at specified dn.
Modify the object at dn using the attribute list.
Parameters: |
|
---|
Search for all matching objects under dn using the query.
Args: dn – dn to search under scope – only SCOPE_BASE and SCOPE_SUBTREE are supported query – query to filter objects by fields – fields to return. Returns all fields if not specified
This method is ignored, but provided for compatibility.
This method is ignored, but provided for compatibility.
Bases: exceptions.Exception
Duplicate exception class from real LDAP module.
Bases: exceptions.Exception
Duplicate exception class from real LDAP module.
Bases: exceptions.Exception
Duplicate exception class from real LDAP module.
Opens a fake connection with an LDAP server.