[python3-ldap] ldap search object
Gary Waters
mr.gary.waters at gmail.com
Mon Feb 3 23:19:41 CET 2014
Hi,
Ahh.. I just read this RFC:
http://tools.ietf.org/html/rfc3673
Please ignore my previous email. I believe my server is ignoring these
Dynamic attributes unless specified.
I am going to make a list variabled, called
FORCE_ALL_OPERATIONAL_ATTRIBUTES with the following attributes
requested:
* accountUnlockTime aci attributeTypes copiedFrom copyingFrom
createTimestamp creatorsName dITContentRules dITStructureRules dncomp
entrydn entryid hasSubordinates ldapSchemas ldapSyntaxes matchingRules
matchingRuleUse modifiersName modifyTimestamp nameForms nsAccountLock
nsAIMStatusGraphic nsAIMStatusText nsBackendSuffix nscpEntryDN
nsds5ReplConflict nsICQStatusGraphic nsICQStatusText nsIdleTimeout
nsLookThroughLimit nsRole nsRoleDN nsSchemaCSN nsSizeLimit nsTimeLimit
nsUniqueId nsYIMStatusGraphic nsYIMStatusText numSubordinates
objectClasses parentid passwordAllowChangeTime passwordExpirationTime
passwordExpWarned passwordGraceUserTime passwordHistory
passwordRetryCount pwdExpirationWarned pwdGraceUserTime pwdHistory
pwdpolicysubentry retryCountResetTime subschemaSubentry vendorName
vendorVersion
If anyone is interested, I can work it into the ldap3 module and search
class.
For now I will just put this into my app.
- Gary
On Mon 03 Feb 2014 01:43:21 PM PST, Gary Waters wrote:
> Hello,
>
> When I try to search using getOperationalAttributes=True, I am not
> getting all the operational attributes, particularly I am interesting in
> getting nsRoleDN and nsRole.
>
> However if I just request nsRoleDN and nsRole (with or without
> getOperationalAttributes=True) I do see those attributes.
>
> I see that in the code the variable
> ALL_OPERATIONAL_ATTRIBUTES = '+'
>
> I am new to this, but when I try this from ldapsearch on the command
> line I dont see a difference. (where my filter is 'objectclass=* + 'or
> just objectclass=*)
>
> Is this because of my server?
>
> Thanks for your help,
> Gary
>
> Ldap3 Version: I am running is from a pip install from a couple of weeks
> ago. via this - 'pip install python3-ldap' in Ubuntu 13.04 and python 2.7.
>
More information about the python3-ldap
mailing list