directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <kayyag...@apache.org>
Subject Re: ApacheDS - DIGEST-MD5 - INVALID_CREDENTIALS: DIGEST-MD5: cannot acquire password
Date Mon, 09 Jul 2012 07:23:25 GMT
DIGEST-MD5 requires the password to be stored in plain text in the server.
check if your password is stored in plain text or not, by default
ApacheDS stores the
passwords in salted-SHA hashes

On Mon, Jul 9, 2012 at 12:36 PM, rJassal <jassal.ravinderjit@gmail.com> wrote:
>
> Hi,
>
> I am working with ApacheDS 2.0.0-M7 release and trying to connect using
> DIGEST-MD5 mechanism using the below code.
>
>
>         Hashtable env = new Hashtable();
>
>         env.put(Context.INITIAL_CONTEXT_FACTORY,
> "com.sun.jndi.ldap.LdapCtxFactory");
>         env.put(Context.PROVIDER_URL, "ldap://ldap.example.com:10389");
>
>         env.put(Context.SECURITY_PRINCIPAL, "mborn");
>         env.put(Context.SECURITY_CREDENTIALS, "secret");
>         env.put(Context.SECURITY_AUTHENTICATION, "DIGEST-MD5");
>         env.put( "java.naming.security.sasl.realm", "example.com" );
>
>         InitialDirContext ctx = new InitialDirContext(env);
>
> But I am getting this error 'INVALID_CREDENTIALS: DIGEST-MD5: cannot acquire
> password'.
>
> Can anyone please help me in this?
> Am I doing something wrong in the code or do I need to make some
> configuration changes in ApacheDS?
> --
> View this message in context: http://old.nabble.com/ApacheDS---DIGEST-MD5---INVALID_CREDENTIALS%3A-DIGEST-MD5%3A-cannot-acquire-password-tp34132601p34132601.html
> Sent from the Apache Directory Project mailing list archive at Nabble.com.
>



-- 
Kiran Ayyagari

Mime
View raw message