Score:0

AD - memberOf attribute missing on some accounts

kg flag

On my AD domain some users do not have "memberOf" attribute set, so these accounts do not appear in search results when I perform an LDAP query like this:

memberOf=CN=Group_A,OU=G-Security,OU=CB-Groups,OU=company,DC=lan,DC=name,DC=it

Performing that search gives me a partial list of Group_A members, only the ones with "memberOf" attribute populated. But if I browse Group_A with AD Users and Computers I can correctly see all members, and if I perform and LDAP search on Group_A I correctly receive all members in "members" attribute.

Reading the docs I found that "memberOf" is a calculated attribute, so I cannot edit it, but is there a way to re-calculate it? Or is there something wrong in the accounts that do not have "memberOf" attribute?

I am trying to have that LDAP query search working because it is used by an external application to retrieve the list of users enabled to use it.

cn flag
Are all of your domain controllers GCs? And which DC is the infrastructure master?
J.B. avatar
kg flag
Unfortunately I do not administer directly the AD environment, but I will ask to my AD administrator. Should I try to query the infrastructure master server?
in flag
The `memberOf` attribute does not exist for the primary group of the user.
LeeM avatar
cn flag
Generally an LDAP-aware product will have a way to supply a group DN directly rather than calculating its membership via a per-user "memberof" property. I'd check the vendor documentation.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.