Click here to Skip to main content
15,867,879 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
(&(DistinguishedName=*OU=Personal*) (DisplayName=abc,xyz)) (objectClass-user))

i have created above LDAP query to fetch records but getting null response. one

What I have tried:

tried to fetch with one filter but that is working it is not working to get records for two conditions as per above
Posted
Updated 28-Sep-22 3:25am
v3
Comments
Richard Deeming 28-Sep-22 4:21am    
DistinguishedName=*OU=Personal* doesn't look like a valid LDAP query filter to me.
PIEBALDconsult 28-Sep-22 9:24am    
(objectClass-user) maybe should also be (objectClass=user)
But I think for retrieving User records you also need another, I'll have to check when I get to the office.
PIEBALDconsult 6-Oct-22 13:12pm    
And an extra right-parenthesis ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900