Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When testing query in "LDAP Query Module" the result does not contain some fields from users AD profiles. For example: facsimiletelephonenumber, ipphone, mobile. These fields are present in AD and filled with some data. But there is one thing - when I perform a test from LDAP Servers page (to test connection to AD from service account) I can see that fields and it's tokens - [ipphone], [mobile] and etc.
Why LDAP Query can not get that fields?
Comments
Comment #1
johnbarclay CreditAttribution: johnbarclay commentedComment #2
johnbarclay CreditAttribution: johnbarclay commentedPerhaps the service account doesn't have access to them. Perhaps they need to be specified to be returned. I'm moving this down to minor support request until someone can find the bug.
Comment #3
VladB1989 CreditAttribution: VladB1989 commentedIn order to populate the table headers, the module checks only the attributes in the first item returned by the ldap query: please check ldap_query.theme.inc:
The problem is the first entry does not have the specific fields so the table will not have those items at all.
Comment #4
grahlComment #5
grahlThis was fixed in 8.x-3.x in availableFields() of QueryController.
Patches with a backport are welcome.
Comment #6
grahlComment #7
grahlClosing issue as outdated due to no further development on 7.x, if you feel this issue is still relevant and you are willing to work on a patch and/or debug the problem, please reopen.