[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Problems with Password Encryption (ITS#292)

At 03:04 PM 9/17/99 GMT, rv33100@glaxowellcome.co.uk wrote:
>Dear All
> I don't have yet resolved my password problem and it's even getting worse. I am trying authentication via UserId and password using Apache Web Server and MOD_AUTH_LDAP. Seems it's a ldap problem.
>First case:  Password NON Crypted
>Result of ldapsearch:
>LDAP Server is V2: execute command with LDAP V2...
>uid=RVoglmaier, o=glaxowellcome, c=IT
>RVoglmaier, glaxowellcome, IT

I assume you enabled UFN printing.

>cn=Reinhard Voglmaier
>Here the auth module via Web is working fine. The command line results in a core dump.
>ldapsearch -D "uid=RVoglmaier,o=glaxowellcome,c=IT" -w "1234567890" cn=*
>LDAP Server is V2: execute command with LDAP V2...
>Bus Error(coredump)

Looks like ldapsearch is ill.  Considering the message about the
LDAP server, it's not OpenLDAP's ldapsearch.  Also note that cn=*
needs to be protect from shell expansion, ie: 'cn=*'.

>Executing the Command:
>/usr/local/bin/ldappasswd -b "o=glaxowellcome,c=IT" -D "cn=Directory Manager,o=glaxowellcome,c=IT" -w admin -H sha -t "uid=RVoglmaier, o=glaxowellcome, c=IT"
>changes the password ( as it should be ) in:
>ldapsearch -D "uid=RVoglmaier,o=glaxowellcome,c=IT" -w "1234567890" cn=*
>LDAP Server is V2: execute command with LDAP V2...
>ldap_simple_bind_s: Invalid credentials

OpenLDAP slapd will also return InvalidCredentials if the bind DN
is not held by any of the server's databases.  Make sure you didn't
typo the DN.  You can also check the slapd log for details as to why
this error was returned.