Results 1 to 2 of 2

Thread: Bind to ADAM with LSA

  1. #1
    Join Date
    Jan 2012
    Posts
    2

    Default 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. #2
    Join Date
    Jan 2012
    Posts
    2

    Default

    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
  •