Re: LDAP Search Query Error
The toll you selected for doing it it correct. So i guess you might be making some mistake using it. Can you tell me how are you querying the GC? I mean, what method are you using?
Re: LDAP Search Query Error
Thank you for replying Henri. Let me first tell you that i am new for LDAP as well as AD. SO i agree i might have made some mistake. Anyway, here is my source:it is created by Java
"CN=Users,DC=mydomain,DC=com";
filter:(objectClass=person)
search
and I use method:
constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
NamingEnumeration results = context.search(dn,filter,constraints);
My context setting are:
PROVIDER_URL:LDAP://host:389
REFERAL:follow
Is there any problem? If yes, please correct me.
Re: LDAP Search Query Error
That sounds pretty good and frankness. However I'm too not a programmer and have never attempted LDAP/ ADSI, etc in Java. But according to what i know i can tell you 2 things depending on this situation.
First: Use (objectCategory=person) as objectCategory is indexed and objectClass isn't by default.
Second: Use GC://host:3268 to connect to the GC (the GAL is just a query of the GC).
If you face any problem with this you can also try the ADSI group and/ or any Java groups.