X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap-cgi.git;a=blobdiff_plain;f=update.cgi;h=d7749d89d75e1876428ae77254124da8e8d84be4;hp=f0ff1acbdc140248413930ad4837de4efb30c148;hb=9b394648f35965c5b6e18a8ff12af25d73866f7a;hpb=ae99a873b1ed078bffc3342461aab9f738436bb7 diff --git a/update.cgi b/update.cgi index f0ff1ac..d7749d8 100755 --- a/update.cgi +++ b/update.cgi @@ -13,6 +13,7 @@ use Digest::HMAC_SHA1 qw(hmac_sha1_hex); use Util; use English; use URI::Escape; +use Crypt::PasswdMD5; use Net::LDAP qw(LDAP_SUCCESS LDAP_PROTOCOL_ERROR); my %config = &Util::ReadConfigFile; @@ -248,7 +249,7 @@ if (!($query->param('doupdate'))) { } # create a md5 crypted password - $newwebpassword = '{crypt}'.crypt($query->param('newwebpass'), &Util::CreateCryptSalt(1)); + $newwebpassword = apache_md5_crypt($query->param('newwebpass'), &Util::CreateMD5Salt()); &Util::LDAPUpdate($ldap, $editdn, 'webPassword', $newwebpassword); }