Link to home
Start Free TrialLog in
Avatar of ashjuv
ashjuv

asked on

Need help with an ldap query to use in ADModify

Hello Experts

I need help with modifying user attributes using admodify. the ldap query I am trying  to use is not returning any users.

I have to search for users who are members of security group 'sgroup' which resides under the container users . I used the following ldap query but it didnt' work.
(&(objectclass=group)(memberof=CN=sgroup,CN=users,DC=domian,DC=com)

the dn of the security group in adsi edit is :
CN=sgroup,CN=Users,DC=domain,DC=com

pls n thx




Avatar of Mike Kline
Mike Kline
Flag of United States of America image

did you just try
memberof=CN=sgroup,CN=users,DC=domian,DC=com
Going to test with admodify and let you know.
Thanks
Mike
Avatar of ashjuv
ashjuv

ASKER

No, let me try.
Avatar of ashjuv

ASKER

even a simple ldap query is not returning any results.

for example I tried (&(objectclass=user)(sn=small), I have the domain controller and domain controllers list selected from the drop down menu.

am i missing something very basic here.
ASKER CERTIFIED SOLUTION
Avatar of Mike Kline
Mike Kline
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial