Announcement Announcement Module
Collapse
No announcement yet.
Bind to ADAM with LSA Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!!

  • #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

    Comment

    Working...
    X