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

crypt´ed passwords ?



i´m useing the current debian unstable slapd daeon.
in the config file i wrote:
password-hash SSHA

so slapds should crypt the passwords, i thought.
i changed the password (via my php4-ldap core fragment:
$entry["userPassword"]  =$HTTP_POST_VARS["pw1"];
$r=@ldap_modify($ds,"cn=" . $PHP_AUTH_USER . ",$dn",$entry);

but the passwort is stored in plaintext (search returns
the password without any changes, no crypt).

what did i do wrong ? am i supposed to store the password already
crypt´ed ? is there a code fragment for php to do ssha crypt ?
what crypt method is suggested if i´m programming in php ?

regards, andreas