'LDAP Query not returning all queried attributes
Is there any reason why a LDAP query does not return all attributes passed in the request?
My request looks like this:
// assembling the attribute list
var ldapAttributeList = FieldMappings.AdminDirMappings.Where(
fieldMapping => !fieldMapping.IsOUPath).Select(
fieldMapping => fieldMapping.ADFieldName).ToArray();
// build the query for the current user
var ldapSearchRequest = new SearchRequest(
configuration[LdapConnectivity.AdminDirRootDirectoryKey],
MakeAdminDirEmployeeNumberFilter(adminDirContact.EmployeeId),
SearchScope.Subtree, ldapAttributeList);
The property "attributeList" contains 25 fields I want to query from LDAP. The response returns only 16 attributes.
Is there a reason for that? Maybe if the LDAP fields are empty they are not returned or similar?
I have no clue why it returns only a subset of the needed fields.
any ideas or hints?
Solution 1:[1]
Maybe, and just maybe, you are using global catalog port 3269 instead of default port 636 for retrieving all atributtes.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Itamar Mesa |