-
Jan 31st, 2012, 06:29 AM
#1
Bind to ADAM with LSA
Hi guys,
I'm setting a bind from spring ldap to ADAM repository, it's works when you use a ADAM account and simple authentication but I need do the bind with a windows account (LSA).
Could you please help me?
Many thanks!!
-
Jan 31st, 2012, 06:41 AM
#2
Added the part of the code:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.j ndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL,param.getLdapUrl()); //replace with your server URL/IP
env.put(Context.SECURITY_AUTHENTICATION,"DIGEST-MD5");
env.put(Context.SECURITY_PRINCIPAL,userName); // in format domain\username or username@domain
env.put(Context.SECURITY_CREDENTIALS, passWord); //the password
DirContext ctx = new InitialDirContext(env);
This is raising the next error: error code 49 - 80090308 data 57
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules