Package easyLDAP :: Module easyLDAP_class_base :: Class easyLDAP
[frames] | no frames]

Class easyLDAP

source code

Known Subclasses:

Instance Methods
 
__deepcopy__(self, memo)
Creates a deepcopy of the easyLDAP class.
source code
 
__del__(self) source code
 
__init__(self, bind_dn=None, bind_pw=None, config_defaults={'AdminRDN': 'cn=admin', 'AutomountRDN': 'ou=automount', 'Base..., update_schema_cache=False, ldapsession=None) source code
 
adminbind(self, admin_bind_pw, refresh_cache=True)
thisClass.adminbind('myADMINPW')
source code
 
adminbind_norefresh(self, admin_bind_pw)
thisClass.bind_norefresh('myDN', 'myPW')
source code
 
anonymous_bind(thisClass)
tries an anonymous bind to the LDAP server.
source code
 
anonymous_bind_norefresh(thisClass)
tries an anonymous bind to the LDAP server.
source code
 
attrtype_needs_objectclass(self, attr)
attrtype_needs_objectclass('myATTRIBUTE')
source code
 
bind(self, bind_dn, bind_pw, refresh_cache=True)
thisClass.bind('myDN', 'myPW')
source code
 
bind_norefresh(self, bind_dn, bind_pw)
thisClass.bind_norefresh('myDN', 'myPW')
source code
 
check_objectclass_dependencies(self, objectclass_list)
check_objectclass_dependencies ('myOBJECT_CLASS'|['myOBJECT_CLASS1', 'myOBJECT_CLASS2'])
source code
 
cn_bind(self, bind_cn, bind_pw, refresh_cache=True)
thisClass.cnbind('myCN', 'myPW')
source code
 
cn_bind_norefresh(self, bind_cn, bind_pw)
thisClass.uid_bind_norefresh('myDN', 'myPW')
source code
 
find_newGidNumber(self, minGID, maxGID=None, myGROUPSBASEDN=None)
searches the connected LDAP server for the lowest vacant gidNumber between minGID and maxGID.
source code
 
find_newUidNumber(self, min_uidNumber=None, max_uidNumber=None, searchbase=None, cached_searchresult=None)
self.find_newUidNumber (minUID,maxUID,myPEOPLEBASEDN)
source code
 
generate_attributetypes_dict(self)
thisClass.generate_attributetypes_dict ()
source code
 
generate_ldapsyntaxes_dict(self)
thisClass.generate_ldapsyntaxes__dict ()
source code
 
generate_objectclass_dict(thisClass)
is for class-internal use only.
source code
 
generate_reverse_attributetypes_dict(self) source code
 
get_admin_dn(self)
thisClass.get_admin_dn ()
source code
 
get_attributetypes(thisClass)
returns a list of all attirbuteTypes that are known the server's LDAP schema.
source code
 
get_attrtype_aliases(self, attrtype, capitalize=False)
thisClass.get_attrtypealiases('myATTRTYPE')
source code
 
get_basedn(self)
thisClass.get_basedn ()
source code
 
get_cache_reference(thisClass)
commits a search operation on the LDAP server with starting with thisClass.ObjectCacheBaseDN as the base DN.
source code
 
get_groups_basedn(self)
thisClass.get_groups_basedn ()
source code
 
get_hosts_basedn(self)
thisClass.get_hosts_basedn ()
source code
 
get_objectclasses(thisClass)
returns a list of all objectClasses that are known to the server's LDAP schema.
source code
 
get_parent_dn(self, dn)
thisClass.get_parent_dn ('myDN')
source code
 
get_parent_rdn(self, dn)
thisClass.get_parent_rdn ('myDN')
source code
 
get_people_basedn(self)
thisClass.get_people_basedn ()
source code
 
get_samba3_algorithmicRidBase(self, this_domain)
thisClass.get_samba3_algorithmicRidBase('myDOMAIN')
source code
 
get_samba3_domainSID(self, domain)
thisClass.get_samba3_domainSID('myDOMAIN')
source code
 
get_samelevel_dns(self, dn, use_cache=False)
thisClass.get_samelevel_dns ('myDN')
source code
 
get_sublevel_dns(self, dn, use_cache=False)
thisClass.get_subleveldns ('myDN')
source code
 
get_sublevel_rdns(self, dn, use_cache=False)
thisClass.get_sublevelrdns ('myDN')
source code
 
get_subtree_dns(self, dn, use_cache=False)
thisClass.get_subtree_dns (this_dn)
source code
 
get_used_attroptions(self, attrdesc, pyldapobject)
thisClass.get_used_attroptions('myATTRDESC', [mySINGLELDAPOBJECT])
source code
 
get_used_attrtype_oids(thisClass)
returns a list of those attribute OIDs, that are currently used in the cached easyLDAP object.
source code
 
get_used_attrtypes(thisClass, mySINGLELDAPOBJECT=...)
returns a list of attribute types that are used in the current easyLDAP object.
source code
 
has_dn(self, dn, searchbase=None, scope=2)
thisClass.has_dn ('myDN')
source code
 
has_oid_set(self, oid, pyldapobject)
thisClass.has_oid_set('myOID'[, mySINGLELDAPOBJECT])
source code
 
has_parent_dn(self, dn)
thisClass.has_parent_dn ('myDN')
source code
 
has_samba2_schema(self) source code
 
has_samba3_schema(self) source code
 
has_valid_attrtype(self, attrdesc)
thisClass.has_valid_attrtype('myATTRDESC')
source code
 
is_collectiveattr(self, this_attr)
thisClass.is_collectiveattr('myATTRIBUTE')
source code
 
is_nousermodattr(self, this_attr)
thisClass.is_nousermodattr('myATTRIBUTE')
source code
 
is_obsoleteattr(self, this_attr)
thisClass.is_obsoleteattr('myATTRIBUTE')
source code
 
is_pyldapobject(self, ldap_data_dict)
thisClass.is_ldapobject('myLDAP_DATA')
source code
 
is_pyldaptree(self, ldap_data_dict)
thisClass.is_ldaptree('myLDAP_DATA')
source code
 
is_singlevalueattr(self, this_attr)
thisClass.is_singlevalueattr('myATTRIBUTE')
source code
 
is_valid_attrtype(self, attrtype)
thisClass.is_valid_attrtype('myATTRTYPE')
source code
 
is_valid_objectclass(self, objectclass)
thisClass.is_valid_objectclass('myOBJECTCLASS')
source code
 
map_attrtype2ldapsyntax(self, this_attrtype)
thisClass.map_attrtype2ldapsyntax('myATTRTYPE')
source code
 
map_attrtype2ldapsyntaxname(self, this_attrtype)
thisClass.map_attrtype2ldapsyntax('myATTRTYPE')
source code
 
map_attrtype2ldapsyntaxoid(self, this_attrtype)
thisClass.map_attrtype2ldapsyntaxoid('myATTRTYPE')
source code
 
map_attrtype2objectclasses(self, attrtype)
thisClass.map_attrtype2objectclass ('myATTRTYPE')
source code
 
map_attrtype2valuemaxlen(self, this_attrtype)
thisClass.map_attrtype2ldapsyntaxoid('myATTRTYPE')
source code
 
map_attrtypes2oids(self, attribute_types_list)
thisClass.map_attrtypes2oids('myATTRIBUTELIST')
source code
 
map_cn2dn(self, cn, searchbase=None, scope=2)
thisClass.map_cn2dn ('myCN')
source code
 
map_dn2ufn(self, dn, searchbase=None)
thisClass.map_dn2ufn ('myDN'):
source code
 
map_gid2dn(self, gid, searchbase=None, scope=2)
thisClass.map_gid2dn ('myGID')
source code
 
map_gid2gidNumber(self, gid)
thisClass.map_gid2gidNumber ('myGID')
source code
 
map_gidNumber2gid(self, gid_number)
thisClass.map_gidNumber2gid ('myGIDNUMBER')
source code
 
map_objectclass2attr(self, objectclass)
thisClass.map_objectclass2attr ('myOBJECT_CLASS')
source code
 
map_oid2attrtypes(self, oid)
thisClass.map_oid2attrtypes('myOID')
source code
 
map_ou2dn(self, ou, searchbase=None, scope=2)
thisClass.map_ou2dn ('myOU', 'mySUBTREE')
source code
 
map_uid2dn(self, uid, searchbase=None, scope=2)
thisClass.map_uid2dn ('myUID')
source code
 
map_uid2posixgroups(self, uid, searchbase=None, scope=2)
thisClass.map_uid2posixgroups ('myUID'[,'mySUBTREE'])
source code
 
map_uid2uniquemembergroups(self, uid, searchbase=None, user_searchbase=None, group_searchbase=None, scope=2)
thisClass.map_uid2uniquemembergroups ('myUID'[,'mySUBTREE'])
source code
 
map_uidNumber2uid(self, uid_number)
thisClass.map_uidNumber2uid ('myUIDNUMBER')
source code
 
refresh_cache(self)
dummy method, will be used in classes easyLDAP_object, easyLDAP_tree, etc.
source code
 
search(thisClass, filter='MyFILTER', scope=myLDAPSCOPE, base='myLDAPSEARCHBASEDN')
performs a raw ldap.search request and returns the DNs of objects the search filter applies to.
source code
 
show_objectclass(self, this_objectclass)
thisClass.show_objectclass ('myOBJECT_CLASS'):
source code
 
uid_bind(self, bind_uid, bind_pw, refresh_cache=True)
thisClass.uid_bind('myUID', 'myPW')
source code
 
uid_bind_norefresh(self, bind_uid, bind_pw)
thisClass.uid_bind_norefresh('myUID', 'myPW')
source code
Method Details

adminbind(self, admin_bind_pw, refresh_cache=True)

source code 

thisClass.adminbind('myADMINPW')

binds to the LDAP server with administrative access. The LDAP server's admin DN is stored in thisClass.AdminDN, the administrative password is given through the argument 'myADMINPW'.

adminbind_norefresh(self, admin_bind_pw)

source code 

thisClass.bind_norefresh('myDN', 'myPW')

as the easyLDAP class does not load any objects into the easyLDAP cache, this method is just an alias for this_class.bind()

attrtype_needs_objectclass(self, attr)

source code 

attrtype_needs_objectclass('myATTRIBUTE')

returns True if the easyLDAP object in cache needs an additional objectClass before adding the LDAP attribute 'myATTRIBUTE'. If the objectClass dependencies are already all solved, it returns False.

The pseudo-boolean funtcion returns None, if there is no such attribute in the server's LDAP schema.

bind(self, bind_dn, bind_pw, refresh_cache=True)

source code 

thisClass.bind('myDN', 'myPW')

binds to the LDAP server with the given credentials 'myDN' and 'myPW'.

bind_norefresh(self, bind_dn, bind_pw)

source code 

thisClass.bind_norefresh('myDN', 'myPW')

as the easyLDAP class does not load any objects into the easyLDAP cache, this method is just an alias for this_class.bind()

check_objectclass_dependencies(self, objectclass_list)

source code 

check_objectclass_dependencies ('myOBJECT_CLASS'|['myOBJECT_CLASS1', 
                                              'myOBJECT_CLASS2'])

checks if and what objectClasses are needed before adding them
to an LDAP directory. The dependencies are derived from the 
server's LDAP schema.

The method returns a list of ObjectClasses, including those
that were given to the method and those that are needed
to complete the set.

cn_bind(self, bind_cn, bind_pw, refresh_cache=True)

source code 

thisClass.cnbind('myCN', 'myPW')

binds to the LDAP server. This method tries to find the cn's corresponding DN in the LDAP tree starting at thisClass.BaseDN.

Binding by CN (Common Name) will fail if the given cn 'myCN' is not unique to the specified LDAP tree.

cn_bind_norefresh(self, bind_cn, bind_pw)

source code 

thisClass.uid_bind_norefresh('myDN', 'myPW')

as the easyLDAP class does not load any objects into the easyLDAP cache, this method is just an alias for this_class.bind()

find_newGidNumber(self, minGID, maxGID=None, myGROUPSBASEDN=None)

source code 

searches the connected LDAP server for the lowest vacant gidNumber between minGID and maxGID.

If myGROUPSBASEDN is not specified, the easyLDAP thisClass.GroupBaseDN is presumed.

The method only checks vacant gidNumber in the connected LDAP tree. Other sources for posixGroupIDs (/etc/groups, NIS, etc.) are not taken into consideration!

If an error occurs or no vacant gidNumber can be found, the method returns '-1'.

find_newUidNumber(self, min_uidNumber=None, max_uidNumber=None, searchbase=None, cached_searchresult=None)

source code 

self.find_newUidNumber (minUID,maxUID,myPEOPLEBASEDN)

live searches the connected LDAP server for the lowest vacant uidNumber between minUID and maxUID.

If myPEOPLEBASEDN is not specified, the easyLDAP thisClass.PeoplebaseDN is presumed.

The method only checks vacant uidNumber in the connected LDAP tree. Other sources for posixUserIDs (/etc/passwd, NIS, etc.) are not taken into consideration!

If an error occurs or no vacant uidNumber can be found, the method returns '-1'.

generate_attributetypes_dict(self)

source code 

thisClass.generate_attributetypes_dict ()

is for class-internal use only. It is evoked once from thisClass.__init__() to generate the python dictionary thisClass.attributeTypesDict.

You should not need to call this method.

generate_ldapsyntaxes_dict(self)

source code 

thisClass.generate_ldapsyntaxes__dict ()

is for class-internal use only. It is evoked once from thisClass.__init__() to generate the python dictionary thisClass.ldapSyntaxesDict.

You should not need to call this method.

generate_objectclass_dict(thisClass)

source code 

is for class-internal use only. It is evoked once from thisClass.__init__() to generate the python dictionary thisClass.objectClassesDict.

You should not need to call this method.

get_attrtype_aliases(self, attrtype, capitalize=False)

source code 

thisClass.get_attrtypealiases('myATTRTYPE')

returns a list of attribute types that are treated as aliases in the LDAP server's schema.

get_basedn(self)

source code 

thisClass.get_basedn ()

returns the absolute DN of the currently cached easyLDAP object/tree/subtree from the LDAP server's directory tree.

get_cache_reference(thisClass)

source code 

commits a search operation on the LDAP server with starting with thisClass.ObjectCacheBaseDN as the base DN. The result of this operation can be compared to the current content of the easyLDAP cache to figure out what changes have been made to the object in cache by easyLDAP methods.

If an error occurs, an empty list will be returned.

get_parent_dn(self, dn)

source code 

thisClass.get_parent_dn ('myDN')

returns the parent absolute DN of 'myDN' from the LDAP server's directory tree.

get_parent_rdn(self, dn)

source code 

thisClass.get_parent_rdn ('myDN')

returns the parent relative DN of 'myDN' from the LDAP server's directory tree.

get_samba3_algorithmicRidBase(self, this_domain)

source code 

thisClass.get_samba3_algorithmicRidBase('myDOMAIN')

searches the LDAP tree starting at thisClass.BaseDN for the algorithmic RID base of Samba domain 'myDOMAIN'.

get_samba3_domainSID(self, domain)

source code 

thisClass.get_samba3_domainSID('myDOMAIN')

searches the LDAP tree starting at thisClass.BaseDN for the Samba PDC's sambaDomainName entry. When the method can find it, then it will extract the domain's SID.

get_samelevel_dns(self, dn, use_cache=False)

source code 

thisClass.get_samelevel_dns ('myDN')

returns a list with distinguished names that exist on the same level as the given DN 'myDN'.

If the DN 'myDN' is alone on its level, it will be the only item in the list.

If the returned list is empty, an error occurred.

get_sublevel_dns(self, dn, use_cache=False)

source code 

thisClass.get_subleveldns ('myDN')

returns a list with distinguished names that exist exactly below the given DN 'myDN'.

If the easyLDAP object has no objects on its sublevel, the result will be an empty list. If an LDAP error occurs, the list will also be empty!

get_sublevel_rdns(self, dn, use_cache=False)

source code 

thisClass.get_sublevelrdns ('myDN')

returns a list with reduced distinguished names that exist exactly below the given DN 'myDN'.

If the easyLDAP object has no objects on its sublevel, the result will be an empty list. If an LDAP error occurs, the list will also be empty!

get_subtree_dns(self, dn, use_cache=False)

source code 

thisClass.get_subtree_dns (this_dn)

returns a tree of all distinguished names that exists below the given DN 'myDN'.

If the easyLDAP object has no objects on its sublevel, the result will be an empty list. If an LDAP error occurs, the list will also be empty!

get_used_attroptions(self, attrdesc, pyldapobject)

source code 

thisClass.get_used_attroptions('myATTRDESC', [mySINGLELDAPOBJECT])

returns a list of all attribute options used with attribute type same as in 'myATTRDESC'. The comparison is performed on an OID basis. So, if an alias of an 'myATTRDESC' is used, it will be taken into account.

get_used_attrtype_oids(thisClass)

source code 

returns a list of those attribute OIDs, that are currently used in the cached easyLDAP object. This list is taken from the server's LDAP schema. If - by some reason - the easyLDAP object cache is, an empty list is returned.

Another LDAP object than the one currently cached can be analyzed by passing 'mySINGLELDAPOBJECT'. The lengths of the passed LDAP object has to be 1.

get_used_attrtypes(thisClass, mySINGLELDAPOBJECT=...)

source code 

returns a list of attribute types that are used in the current easyLDAP object. If - by some reason - the cache is empty, an empty list is returned.

Another LDAP object than the one currently cached can be analyzed by passing 'mySINGLELDAPOBJECT'. The lengths of the passed LDAP object has to be 1.

has_dn(self, dn, searchbase=None, scope=2)

source code 

thisClass.has_dn ('myDN')

checks, if the given distinguished name 'myDN' exists in the server's LDAP directory. The searches starts with the thisClass.BaseDN.

has_oid_set(self, oid, pyldapobject)

source code 

thisClass.has_oid_set('myOID'[, mySINGLELDAPOBJECT])

checks if the given OID 'myOID' is set in the cached easyLDAP object. If so, the method's result is True.

Another LDAP object than the one currently cached can be analyzed by passing 'mySINGLELDAPOBJECT'. The lengths of the passed LDAP object has to be 1.

has_parent_dn(self, dn)

source code 

thisClass.has_parent_dn ('myDN')

tests the existence of the referred object with a live search request to the LDAP server.

has_valid_attrtype(self, attrdesc)

source code 

thisClass.has_valid_attrtype('myATTRDESC')

tests if the given attribute 'myATTRDESC' has a valid attributeType according to the server's LDAP schema.

is_collectiveattr(self, this_attr)

source code 

thisClass.is_collectiveattr('myATTRIBUTE')

tests if the COLLECTIVE flag is set for the LDAP attribute 'myATTRIBUTE'.

is_nousermodattr(self, this_attr)

source code 

thisClass.is_nousermodattr('myATTRIBUTE')

tests if the NO-USER-MODIFICATION flag is set for the LDAP attribute 'myATTRIBUTE'.

is_obsoleteattr(self, this_attr)

source code 

thisClass.is_obsoleteattr('myATTRIBUTE')

tests if the OBSOLETE flag is set for the LDAP attribute 'myATTRIBUTE'.

is_pyldapobject(self, ldap_data_dict)

source code 

thisClass.is_ldapobject('myLDAP_DATA')

returns True, if the given data structure conforms to the python-ldap data format and only contains data of a single DN.

is_pyldaptree(self, ldap_data_dict)

source code 

thisClass.is_ldaptree('myLDAP_DATA')

returns True, if the given data structure conforms to the python-ldap data format and the hierarchical structure is tree-like.

is_singlevalueattr(self, this_attr)

source code 

thisClass.is_singlevalueattr('myATTRIBUTE')

tests if the SINGLE-VALUE flag is set for the LDAP attribute 'myATTRIBUTE'.

is_valid_attrtype(self, attrtype)

source code 

thisClass.is_valid_attrtype('myATTRTYPE')

tests if the given attribute type 'myATTRTYPE' is a valid attribute type according to the server's LDAP schema.

is_valid_objectclass(self, objectclass)

source code 

thisClass.is_valid_objectclass('myOBJECTCLASS')

tests if the given objectClass 'myOBJECTCLASS' is a valid objectClass according to the server's LDAP schema.

map_attrtype2ldapsyntax(self, this_attrtype)

source code 

thisClass.map_attrtype2ldapsyntax('myATTRTYPE')

returns the LDAPSyntax for the given attribute 'myATTRTYPE'. Using
the dictionary thisClass.templateLDAPSyntaxValues will help you
to generate a default value for new attribute values:

    print thisClass.templateLDAPSyntaxValues[
          thisClass.map_attrtype2ldapsyntax['myATTRTYPE']
          ]

map_attrtype2ldapsyntaxname(self, this_attrtype)

source code 

thisClass.map_attrtype2ldapsyntax('myATTRTYPE')

returns the LDAPSyntax for the given attribute 'myATTRTYPE'. Using
the dictionary thisClass.templateLDAPSyntaxValues will help you
to generate a default value for new attribute values:

    print thisClass.templateLDAPSyntaxValues[
          thisClass.map_attrtype2ldapsyntax['myATTRTYPE']
          ]

map_attrtype2ldapsyntaxoid(self, this_attrtype)

source code 

thisClass.map_attrtype2ldapsyntaxoid('myATTRTYPE')

returns the LDAPSyntax's OID for the given attribute type 'myATTRTYPE'.

map_attrtype2objectclasses(self, attrtype)

source code 

thisClass.map_attrtype2objectclass ('myATTRTYPE')

returns a lists of objectClasses that the given attribute 'myATTRTYPE' occurs in. This list is derived from the server's LDAP schema.

map_attrtype2valuemaxlen(self, this_attrtype)

source code 

thisClass.map_attrtype2ldapsyntaxoid('myATTRTYPE')

returns the LDAPSyntax's OID for the given attribute type 'myATTRTYPE'.

map_attrtypes2oids(self, attribute_types_list)

source code 

thisClass.map_attrtypes2oids('myATTRIBUTELIST')

maps the given attributes in 'myATTRIBUTELIST' to a list of their unequivocal OIDs. If the mapping fails, an empty list is returned.

map_cn2dn(self, cn, searchbase=None, scope=2)

source code 

thisClass.map_cn2dn ('myCN')

transforms the given common name 'myCN' - if unique - to the corresponding DN in the LDAP tree. The search is started at base DN thisClass.BaseDN.

map_dn2ufn(self, dn, searchbase=None)

source code 

thisClass.map_dn2ufn ('myDN'):

tries to map a given 'myDN' to a user-friendly DN. This method is taken directly from python-ldap.

map_gid2dn(self, gid, searchbase=None, scope=2)

source code 

thisClass.map_gid2dn ('myGID')

transforms the given gid 'myGID' - if unique - to the corresponding DN in the LDAP tree. The search is started at base DN thisClass.BaseDN.

map_gid2gidNumber(self, gid)

source code 

thisClass.map_gid2gidNumber ('myGID')

transforms the given gid 'myGID' to the corresponding gidNumber. The search is started at base DN thisClass.BaseDN.

map_gidNumber2gid(self, gid_number)

source code 

thisClass.map_gidNumber2gid ('myGIDNUMBER')

transforms the given gidNumber 'myGIDNUMBER' to the corresponding gid. The search is started at base DN thisClass.BaseDN.

map_objectclass2attr(self, objectclass)

source code 

thisClass.map_objectclass2attr ('myOBJECT_CLASS')

returns all attributes that are mentioned in the server's LDAP schema for objectClass 'myOBJECT_CLASS'.

map_oid2attrtypes(self, oid)

source code 

thisClass.map_oid2attrtypes('myOID')

maps the given OID 'myOID' to a list of their possible ATTRIBUTEs according to the LDAP server's LDAP schema. If the mapping fails, an empty list is returned.

map_ou2dn(self, ou, searchbase=None, scope=2)

source code 

thisClass.map_ou2dn ('myOU', 'mySUBTREE')

transforms the given organizationalUnit 'myOU' - if unique - to the corresponding DN in the LDAP tree. The search is started at base DN thisClass.BaseDN.

map_uid2dn(self, uid, searchbase=None, scope=2)

source code 

thisClass.map_uid2dn ('myUID')

transforms the given uid 'myUID' - if unique - to the corresponding DN in the LDAP tree. The search is started at base DN thisClass.BaseDN.

map_uid2posixgroups(self, uid, searchbase=None, scope=2)

source code 

thisClass.map_uid2posixgroups ('myUID'[,'mySUBTREE'])

find all ldap groups that the given uid 'myUID' is a posix member of. As a result the method returns a list of posixGroup DNs. The search is started at base DN thisClass.BaseDN if not otherswise specified in 'mySUBTREE'.

map_uid2uniquemembergroups(self, uid, searchbase=None, user_searchbase=None, group_searchbase=None, scope=2)

source code 

thisClass.map_uid2uniquemembergroups ('myUID'[,'mySUBTREE'])

find all groups that the given uid 'myUID' is a unique member of. As a result the method returns a list of posixGroup DNs. The search is started at base DN thisClass.BaseDN if not otherswise specified in 'mySUBTREE'.

map_uidNumber2uid(self, uid_number)

source code 

thisClass.map_uidNumber2uid ('myUIDNUMBER')

transforms the given uidNumber 'myUIDNUMBER' to the corresponding uid. The search is started at base DN thisClass.BaseDN.

show_objectclass(self, this_objectclass)

source code 

thisClass.show_objectclass ('myOBJECT_CLASS'):

displays an objectClass's schema in a user-friendly manner...

uid_bind(self, bind_uid, bind_pw, refresh_cache=True)

source code 

thisClass.uid_bind('myUID', 'myPW')

binds to the LDAP server. This method tries to find the UID's corresponding DN in the LDAP tree starting at thisClass.BaseDN.

Binding by UID will fail if the given UID 'myUID' is not unique to the specified LDAP tree.

uid_bind_norefresh(self, bind_uid, bind_pw)

source code 

thisClass.uid_bind_norefresh('myUID', 'myPW')

as the easyLDAP class does not load any objects into the easyLDAP cache, this method is just an alias for this_class.bind()