__init__(self,
ldap_connection,
attributes=None,
filterstr=' (objectClass=*) ' ,
start_tls='
' ,
bind_dn='
' ,
bind_pass='
' )
(Constructor)
| source code
|
Fetch LDAP attributes of the authenticated user.
@param ldap_connection: The LDAP connection to use to fetch this data.
@type ldap_connection: C{ldap.ldapobject.SimpleLDAPObject} or C{str}
@param attributes: The authenticated user's LDAP attributes you want to
use in your application; an interable or a comma-separate list of
attributes in a string, or C{None} to fetch them all.
@type attributes: C{iterable} or C{str}
@param filterstr: A filter for the search, as documented in U{RFC4515
<http://www.faqs.org/rfcs/rfc4515.html>}; the results won't be
filtered unless you define this.
@type filterstr: C{str}
@param start_tls: Should we negotiate a TLS upgrade on the connection with
the directory server?
@type start_tls: C{str}
@param bind_dn: Operate as the bind_dn directory entry
@type bind_dn: C{str}
@param bind_pass: The password for bind_dn directory entry
@type bind_pass: C{str}
@raise ValueError: If L{make_ldap_connection} could not create a
connection from C{ldap_connection}, or if C{attributes} is not an
iterable.
The following parameters are inherited from
L{LDAPBaseAuthenticatorPlugin.__init__}
@param base_dn: The base for the I{Distinguished Name}. Something like
C{ou=employees,dc=example,dc=org}, to which will be prepended the
user id: C{uid=jsmith,ou=employees,dc=example,dc=org}.
@param returned_id: Should we return full Directory Names or just the
naming attribute value on successful authentication?
@param start_tls: Should we negotiate a TLS upgrade on the connection with
the directory server?
@param bind_dn: Operate as the bind_dn directory entry
@param bind_pass: The password for bind_dn directory entry
- Overrides:
object.__init__
|