X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap-cgi.git;a=blobdiff_plain;f=update.cgi;h=9f9b78ca557612b350e9f827696d1168100510d4;hp=4db9464cd648ad1ef4520d22d728f92973394824;hb=6e4d8c65d25e6ef5dc4a92ae8fc917f822d9ebfd;hpb=86db90437e60869cae6c0a7689e63d277991c52f diff --git a/update.cgi b/update.cgi index 4db9464..9f9b78c 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($query->param('newwebpass'), &Util::CreateCryptSalt(1)); + $newwebpassword = apache_md5_crypt($query->param('newwebpass'), &Util::CreateCryptSalt(1)); &Util::LDAPUpdate($ldap, $editdn, 'webPassword', $newwebpassword); }