AcceptSecurityContext error
Hello,
i have use this code to connect ot active directory, but i get
the following execption:
java.naming.AuthonticationException:[LDAP:error code 49-80090308:
LdapErr:DSID-0c090290,comment: AcceptSecurityPolicy error........
the code is:
Hashtable env = new Hashtable();
env.put(Context.SECURITY_AUTHENTICATION,"simple");
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL,"ldap://localhost:389/dc=chatting,dc=iugaza,dc=edu");
env.put(Context.SECURITY_PRINCIPAL,user);
env.put(Context.SECURITY_CREDENTIALS,password);
try{
DirContext ctx = new InitialDirContext(env);
ctx.close();
}catch(Exception e){
e.printStackTrace();
}
what is the problem ?
please help me.
thanks

