I'm having a problem querying an LDAP and had a question. What would be the proper format if I just want to query the domain tree and return info regarding the users. In other words, previously i would query within an OU and get results for users within that OU. But if I want to move up a level and query the domain and get results that list the username, and OU they're in...
So up until this point, my query was as below;
OU=NY, DC=DomainA, DC=local
but what if I want my query string to be just DC=DomainA, DC=local and return all the users and they're OU's they're associated in.
I was assuming i would use some sort of wildcard character for the OU= but that hasn't worked...