archive-org.com » ORG » P » PYTHON-LDAP.ORG

Total: 40

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • ldap.filter LDAP filter handling — python-ldap 2.4.22.0 documentation
    this function when building LDAP filter strings from arbitrary input escape mode means If 0 only special chars mentioned in RFC 4515 are escaped If 1 all NON ASCII chars are escaped If 2 all chars are escaped ldap filter filter format filter template assertion values This function applies escape filter chars to each of the strings in list assertion values After that filter template containing as many s placeholders

    Original URL path: https://www.python-ldap.org/doc/html/ldap-filter.html (2016-04-29)
    Open archived version from archive


  • ldap.modlist Generate modify lists — python-ldap 2.4.22.0 documentation
    result at all ldap modlist modifyModlist old entry new entry ignore attr types ignore oldexistent 0 case ignore attr types None list This function builds a list suitable for passing it directly as argument modlist to method ldap ldapobject LDAPObject modify or its synchronous counterpart ldap ldapobject LDAPObject modify s Roughly when applying the resulting modify list to an entry holding the data old entry it will be modified in such a way that the entry holds new entry after the modify operation It is handy in situations when it is impossible to track user changes to an entry s data or for synchronizing operations old entry and new entry are dictionaries like returned when receiving search results ignore attr types is a list of attribute type names which shall be ignored completely These attribute types will not appear in the result at all If ignore oldexistent is non zero attribute type names which are in old entry but are not found in new entry at all are not deleted This is handy for situations where your application sets attribute value to an empty string for deleting an attribute In most cases leave zero If case ignore attr types is

    Original URL path: https://www.python-ldap.org/doc/html/ldap-modlist.html (2016-04-29)
    Open archived version from archive

  • ldap.resiter Generator for stream-processing of large search results — python-ldap 2.4.22.0 documentation
    demonstrates how to use mix in class ldap resiter ResultProcessor for retrieving results formerly requested with ldap LDAPObject search and processing them in a for loop import sys ldap ldap resiter class MyLDAPObject ldap ldapobject LDAPObject ldap resiter ResultProcessor pass l MyLDAPObject ldap localhost Asynchronous search method msg id l search dc stroeder dc com ldap SCOPE SUBTREE objectClass for res type res data res msgid res controls in l

    Original URL path: https://www.python-ldap.org/doc/html/ldap-resiter.html (2016-04-29)
    Open archived version from archive

  • ldap.schema Handling LDAPv3 schema — python-ldap 2.4.22.0 documentation
    schema models Schema elements class ldap schema models Entry schema dn entry Schema aware implementation of an LDAP entry class Mainly it holds the attributes in a string keyed dictionary with the OID as key attribute types attr type filter None raise keyerror 1 Convenience wrapper around SubSchema attribute types which passes object classes of this particular entry as argument to SubSchema attribute types class ldap schema models SchemaElement schema element str None Base class for all schema element classes Not used directly Arguments schema element str String which contains the schema element description to be parsed Class attributes schema attribute LDAP attribute type containing a certain schema element description token defaults Dictionary internally used by the schema element parser containing the defaults for certain schema description key words class ldap schema models AttributeType schema element str None Arguments schema element str String containing an AttributeTypeDescription Class attributes oid OID assigned to the attribute type names This list of strings contains all NAMEs of the attribute type desc This string contains description text DESC of the attribute type obsolete Integer flag 0 or 1 indicating whether the attribute type is marked as OBSOLETE in the schema single value Integer flag 0 or 1 indicating whether the attribute must have only one value syntax String contains OID of the LDAP syntax assigned to the attribute type no user mod Integer flag 0 or 1 indicating whether the attribute is modifiable by a client application equality String contains NAME or OID of the matching rule used for checking whether attribute values are equal substr String contains NAME or OID of the matching rule used for checking whether an attribute value contains another value ordering String contains NAME or OID of the matching rule used for checking whether attribute values are lesser equal than usage USAGE of an attribute type 0 userApplications 1 directoryOperation 2 distributedOperation 3 dSAOperation sup This list of strings contains NAMEs or OIDs of attribute types this attribute type is derived from class ldap schema models ObjectClass schema element str None Arguments schema element str String containing an ObjectClassDescription Class attributes oid OID assigned to the object class names This list of strings contains all NAMEs of the object class desc This string contains description text DESC of the object class obsolete Integer flag 0 or 1 indicating whether the object class is marked as OBSOLETE in the schema must This list of strings contains NAMEs or OIDs of all attributes an entry of the object class must have may This list of strings contains NAMEs or OIDs of additional attributes an entry of the object class may have kind Kind of an object class 0 STRUCTURAL 1 ABSTRACT 2 AUXILIARY sup This list of strings contains NAMEs or OIDs of object classes this object class is derived from class ldap schema models MatchingRule schema element str None Arguments schema element str String containing an MatchingRuleDescription Class attributes oid OID assigned to the matching rule names This list of

    Original URL path: https://www.python-ldap.org/doc/html/ldap-schema.html (2016-04-29)
    Open archived version from archive

  • ldap.syncrepl Implementation of a syncrepl consumer — python-ldap 2.4.22.0 documentation
    get cookie Called by syncrepl search to retreive the cookie stored by syncrepl set cookie syncrepl poll msgid 1 timeout None all 0 polls for and processes responses to the syncrepl search operation Returns False when operation finishes True if it is in progress or raises an exception on error If timeout is specified raises ldap TIMEOUT in the event of a timeout If all is set to a nonzero value poll will return only when finished or when an exception is raised syncrepl present uuids refreshDeletes False Called by syncrepl poll whenever entry UUIDs are presented to the client syncrepl present is given a list of entry UUIDs uuids and a flag refreshDeletes which indicates whether the server explicitly deleted non present entries during the refresh operation If called with a list of uuids the syncrepl present implementation should record those uuids as present in the directory If called with uuids set to None and refreshDeletes set to False syncrepl present should delete all non present entries from the local mirror and reset the list of recorded uuids If called with uuids set to None and refreshDeletes set to True syncrepl present should reset the list of recorded uuids without deleting any entries syncrepl refreshdone Called by syncrepl poll between refresh and persist phase It indicates that initial synchronization is done and persist phase follows syncrepl search base scope mode refreshOnly cookie None search args Starts syncrepl search operation base scope and search args are passed along to self search ext unmodified aside from adding a Sync Request control to any serverctrls provided mode provides syncrepl mode Can be refreshOnly to finish after synchronization or refreshAndPersist to persist continue to receive updates after synchronization cookie an opaque value representing the replication state of the client Subclasses should override the

    Original URL path: https://www.python-ldap.org/doc/html/ldap-syncrepl.html (2016-04-29)
    Open archived version from archive

  • ldap.sasl Handling LDAPv3 schema — python-ldap 2.4.22.0 documentation
    sasl bind s method several times Each time it will provide the id which tells us what kind of information is requested the CB constants above The challenge might be a short english text or some binary string from which the return value is calculated The prompt argument is always a human readable description string The defresult is a default value provided by the sasl library Currently we do not use the challenge and prompt information and return only information which is stored in the self cb value dict cb value dictionary Note that the current callback interface is not very useful for writing generic sasl GUIs which would need to know all the questions to ask before the answers are returned to the sasl lib in contrast to one question at a time class ldap sasl cram md5 authc id password authz id This class handles SASL CRAM MD5 authentication class ldap sasl digest md5 authc id password authz id This class handles SASL DIGEST MD5 authentication class ldap sasl gssapi authz id This class handles SASL GSSAPI i e Kerberos V authentication class ldap sasl external authz id This class handles SASL EXTERNAL authentication i e X 509

    Original URL path: https://www.python-ldap.org/doc/html/ldap-sasl.html (2016-04-29)
    Open archived version from archive

  • ldif LDIF parser and generator — python-ldap 2.4.22.0 documentation
    LDAPObject modify base64 attrs list of attribute types to be base64 encoded in any case cols Specifies how many columns a line may have before it s folded into many lines ldif ParseLDIF f ignore attrs None maxentries 0 Parse LDIF records read from file This is a compability function Use is deprecated Classes class ldif LDIFWriter output file base64 attrs None cols 76 line sep n Write LDIF entry or change records to file object Copy LDIF input to a file output object containing all data retrieved via URLs class ldif LDIFParser input file ignored attr types None max entries 0 process url schemes None line sep n Base class for a LDIF parser Applications should sub class this class and override method handle to implement something meaningful Public class attributes records read Counter for records processed so far class ldif LDIFRecordList input file ignored attr types None max entries 0 process url schemes None Collect all records of LDIF input into a single list of 2 tuples dn entry It can be a memory hog class ldif LDIFCopy input file output file ignored attr types None max entries 0 process url schemes None base64 attrs None cols 76 line sep n Copy LDIF input to LDIF output containing all data retrieved via URLs Example The following example demonstrates how to write LDIF output of an LDAP entry with ldif module import sys ldif entry objectClass top person cn Michael Stroeder sn Stroeder dn cn Michael Stroeder ou Test ldif writer ldif LDIFWriter sys stdout ldif writer unparse dn entry dn cn Michael Stroeder ou Test cn Michael Stroeder objectClass top objectClass person sn Stroeder The following example demonstrates how to parse an LDIF file with ldif module skip some entries and write the result to stdout import sys

    Original URL path: https://www.python-ldap.org/doc/html/ldif.html (2016-04-29)
    Open archived version from archive

  • ldapurl LDAP URL handling — python-ldap 2.4.22.0 documentation
    isLDAPUrl s Returns 1 if s is a LDAP URL 0 else ldapurl ldapUrlEscape s Returns URL encoding of string s Classes LDAP URLs A LDAPUrl object represents a complete LDAP URL class ldapurl LDAPUrl ldapUrl None urlscheme ldap hostport dn attrs None scope None filterstr None extensions None who None cred None Class for parsing and unparsing LDAP URLs as described in RFC 4516 Usable class attributes urlscheme URL scheme either ldap ldaps or ldapi hostport LDAP host default dn String holding distinguished name default attrs list of attribute types default None scope integer search scope for ldap module filterstr String representation of LDAP Search Filters see RFC 4515 extensions Dictionary used as extensions store who Maps automagically to bindname LDAP URL extension cred Maps automagically to X BINDPW LDAP URL extension LDAP URL extensions A LDAPUrlExtension object represents a single LDAP URL extension whereas LDAPUrlExtensions represents a list of LDAP URL extensions class ldapurl LDAPUrlExtension extensionStr None critical 0 extype None exvalue None Class for parsing and unparsing LDAP URL extensions as described in RFC 4516 Usable class attributes critical Boolean integer marking the extension as critical extype Type of extension exvalue Value of extension class ldapurl LDAPUrlExtensions default None Models a collection of LDAP URL extensions as dictionary type Example Important security advice For security reasons you shouldn t specify passwords in LDAP URLs unless you really know what you are doing The following example demonstrates how to parse a LDAP URL with ldapurl module import ldapurl ldap url ldapurl LDAPUrl ldap localhost 1389 dc stroeder dc com cn mail bindname cn Michael 2c dc stroeder 2c dc com X BINDPW secret Using the parsed LDAP URL by reading the class attributes ldap url dn dc stroeder dc com ldap url hostport localhost 1389 ldap url attrs

    Original URL path: https://www.python-ldap.org/doc/html/ldapurl.html (2016-04-29)
    Open archived version from archive



  •