fix in function des_cryptpasswd

This commit is contained in:
ceb 2002-11-24 21:53:21 +00:00
parent 264ed9b520
commit b0f46deaa0

View File

@ -1677,11 +1677,11 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
function des_cryptpasswd($userpass, $random) function des_cryptpasswd($userpass, $random)
{ {
$lcrypt = '{crypt}'; $lcrypt = '{crypt}';
$password = crypt($userpass); $password = crypt($userpass, $random);
$ldappassword = sprintf('%s%s', $lcrypt, $password); $ldappassword = sprintf('%s%s', $lcrypt, $password);
return $ldappassword; return $ldappassword;
} }
/*! /*!
@function md5_cryptpasswd @function md5_cryptpasswd
@abstract md5 encrypt password @abstract md5 encrypt password