Skip to content
Permalink
Browse files

add memberDNs

  • Loading branch information
m0rgen committed Apr 9, 2014
1 parent 6d9d2e7 commit 1ddb36cc8fbb3d10e0ede657786bb1359588f7f6
Showing with 7 additions and 2 deletions.
  1. +2 −0 twext/who/ldap/__init__.py
  2. +5 −2 twext/who/ldap/_service.py
@@ -27,6 +27,7 @@
"DirectoryService",
"LDAPAttribute",
"LDAPObjectClass",
"FieldName",
]


@@ -37,6 +38,7 @@
LDAPBindAuthError,
RecordTypeSchema,
DirectoryService,
FieldName
)
from ._constants import (
LDAPAttribute,
@@ -108,6 +108,10 @@ class FieldName(Names):
dn = NamedConstant()
dn.description = u"distinguished name"

memberDNs = NamedConstant()
memberDNs.description = u"member DNs"
memberDNs.multiValue = True



#
@@ -472,10 +476,9 @@ def _recordsFromQueryString(self, queryString):
):
continue

# Set record type and uid fields
# Set record type and dn fields

fields[self.fieldName.recordType] = recordType
# fields[self.fieldName.uid] = uid
fields[self.fieldName.dn] = dn.decode("utf-8")

# Make a record object from fields.

0 comments on commit 1ddb36c

Please sign in to comment.
You can’t perform that action at this time.