John Lazos wrote:
>

> 3. Is is possible LDAP is returning a crypted password when you need the
> plaintext, or vice-versa? 

If you are having problems authenticating against LDAP, it might very
well be because of the encryption hash. LDAP defaults to SSHA and courier
doesn't appear to be too fond of it. Try MD5 instead:

====
while [ "$user" != "telos" ]
do
echo "username (or \"telos\" to exit): "
read user
if [ "$user" != "telos" ]
then
echo "password: "
read password
hash=`slappasswd -v -h {md5} -s $password`
cat<<EOF>>modify.ldif
dn: uid=$user,ou=users,dc=koutcons,dc=gr
changetype: modify
modify: userPassword
userPassword: $hash

EOF
fi
done
ldapmodify -x -v -h localhost -D "cn=manager,dc=koutcons,dc=gr" -c -w secret -f 
modify.ldif
====

Or something similar. Forgive my indentation.

Z



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to