LDAP Authention Error
Hi,ALL
I use LDAP to access Windows 2003 server active directory.
It works pretty good.
However, since some reason, I have reinstalled windows 2003 server.
and my LDAP can not pass authencation.
Error:
LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece
The account which I used is administrator/admin
If I use Softerra LDAP Browser 2.6 tool to access active directory.
It works.
my code is:
props = new Properties();
props.put(Context.PROVIDER_URL,LDAP+host+LDAP_PORT+"/");
props.put(Context.INITIAL_CONTEXT_FACTORY,CONTECT_FACTORY);
props.put(Context.SECURITY_PRINCIPAL,domain+"\\"+user);
props.put(Context.SECURITY_CREDENTIALS,password);
props.put(Context.SECURITY_AUTHENTICATION,AUTH_SIMP);
try{
context = new InitialDirContext(props);
}catch(Exception ex){
Logger.log(ex.toString());
}
Any suggestion would be great appreciated

