Package repoze :: Package who :: Package plugins :: Package ldap :: Module tests :: Class CustomLDAPAuthenticatorPlugin
[hide private]

Class CustomLDAPAuthenticatorPlugin

source code


Fake class to test that LDAPAuthenticatorPlugin._get_dn can be overriden with no problems

Instance Methods [hide private]
unicode
_get_dn(self, environ, identity)
Return the user naming identifier based on the environment and the identity.
source code

Inherited from plugins.LDAPAuthenticatorPlugin: __init__

Inherited from plugins.LDAPBaseAuthenticatorPlugin: __providedBy__, __repr__, authenticate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from plugins.LDAPBaseAuthenticatorPlugin: __implemented__, __provides__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_get_dn(self, environ, identity)

source code 

Return the user naming identifier based on the environment and the identity.

If the login item of the identity is rms and the base DN is ou=developers,dc=gnu,dc=org, the resulting DN will be: uid=rms,ou=developers,dc=gnu,dc=org

Parameters:
  • environ - The WSGI environment.
  • identity - The identity dictionary.
Returns: unicode
The Distinguished Name (DN)
Raises:
  • ValueError - If the login key is not in the identity dict.
Overrides: plugins.LDAPBaseAuthenticatorPlugin._get_dn
(inherited documentation)