Home | Trees | Indices | Help |
---|
|
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
EASY_LDAP =
|
|
__package__ =
|
|
except_dict =
|
|
key =
|
Function Details |
Checks, whether all alphabetical characters in a given string are upper case characters.
|
Checks, whether all alphabetical characters in a given string are lower case characters.
|
Checks, whether lower as well as upper case characters appear in a given string.
|
Tries to map special characters in a human readable string to IA5 string characters.
|
Generate a crypt password hash for a given plain text password.
|
Generate a smbpasswd-style NT hash.
|
Generate a smbpasswd-style LanManager (Win9x) hash.
|
This function is used to replace aliases of attribute types in the easyLDAP internal data structure. The function expects a dictionary of attribute descriptions and their values (i.e. dictionary keys of the form <attrType>;<attrOption>). The function will fail if the attribute descriptions (i.e. the dictionary keys) are not all of the same attribute type. It furtheron expects an alias of the attribute type name that shall replace the commonly used attribute type in the formerly named dictionary. The attribute options, however, must be supported by the LDAPv3 protocol. Attribute description values must be given as multi-valued or single-valued lists (depending on the attribute's properties in the server's LDAP schema). Example: attrdesc_dict = { 'ou': ['network administration team',], 'ou;lang-de': ['NETZWERKTEAM',],} attrtype_alias = 'organizationalUnit' result = { 'organizationalUnit': ['network administration team',], 'organizationalUnit;lang-de': ['NETZWERKTEAM',],} If the function fails, the value
|
Return
|
Return
|
Convert any object of a standard Pythonian variable type to a list of strings.
|
Generate an ldif formatted text, that can be used with official OpenLDAP Utils (ldapadd, ldapmodify) or any other LDIF capable LDAP tool. The method expects two Python LDAP objects that only contain a single DN each. To create an LDIF output it is also a pre-requisite that both LDAP objects share the same DN. The method returns a list, each item represents a line of the LDIF output format. If this function returns an empty list it means that both Python LDAP objects are identical. If this function returns
|
Generate a modification list, that can be used with the Python LDAP methods: ldap.ldap_modify() ldap.modify_s() The method expects two Python LDAP objects that only contain a single DN each. To create an LDAP modlist it is also a pre-requisite that both LDAP objects share the same DN. If this function returns an empty list it means that both Python LDAP objects are identical. If this function returns
|
Return LDAP DNs that have all the same depth level in an LDAP tree hierarchy.
|
Sort a DN list so that it can be looked at as an LDAP tree after sorting.
|
Generate a random password.
|
Split a DN into its RDN components.
|
Return the parent DN of a given DN. If the given DN already is the base DN of the LDAP tree, then the Base DN is returned.
|
Return the RDN of a given DN. If the given DN already is the base DN of the LDAP tree, then the Base DN is returned.
|
Check if DN has a valid syntax.
|
Detect the nameing attribute type of a given DN.
|
Find the (mathematical) intersection of two different sets of items.
|
Variables Details |
EASY_LDAP
|
except_dict
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Oct 3 15:37:35 2010 | http://epydoc.sourceforge.net |