Hello,

I am just starting on an app to read users list from LDAP. I am trying the LDAP 
API for this. Domain controller is running windows 2012 R2 server. I could do 
it in .net but I prefer to do it in Java as the final product will be a 
web-app. I am trying just a simple bind and it keeps giving this exception. The 
statement giving exception is very simple -

conn.bind("....user dn....","..password..");

The user DN is correct. I found it from the dsquery for the user. If I run it 
on a computer outside the domain, not even connected, I get events 2536 and 
2537 on the ldap service at times. I have been trying various things like 
changing service users etc. so I couldn't keep track of exactly when I get 2536 
and when 2537. If I run the program on the domain controller itself I get same 
error but no offending events. Rather confusing. There are no other 
objectionable events in the service event log.

Anonymous bind works ( connection.bind() ) but then query does not work at all. 
Returns nothing.

Hope someone has seen this problem before and or either way can give me some 
help.

Thanks,
-Jayant Pandit.

Reply via email to