On July 15, 2001 09:50 am, pop corn wrote:
> However, the check_ldap() in checkpassword.c fails as follows:
>
> If I type in secret as the cleartext password:
> # /home/qmail/bin/qmail-popup localhost /home/qmail/bin/auth_pop pwd
> +OK
> user <user>
> +OK
> pass secret
> -ERR user record incorrect
That's the same error I was getting with the {CRYPT} passwords. But it all
went away when I started using {MD5} passwords.
> Perhaps this has to do with the md5 password being encoded in base64.
Mine are still encoded in base64 in the LDAP directory, but all is working
now.
> check_ldap():authdata->s:{md5}WPa5t2Ahxs8Y0a3GSxLHpg==
> check_ldap():extra[0].vals[0]->s:{md5}WPa5t2Ahxs8Y0a3GSxLHpg==
It seems that the check_ldap function is correctly decoding the base 64
here... and these strings do match. It's very bizarre that it isn't accepting
the password.
-Eric
--
arctic bears - the internet - your way.
email hosting from US$8/month, domains from US$19/year.
http://www.arcticbears.com