X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=update.cgi;h=ae0b6ce2289e93fc42c99464191b0ba8b687444c;hb=449fb36b879fe6aca6347db51f1c00d4865144be;hp=f78a7ebeae7df753610e759db64fb08ef9036f6b;hpb=00a6b3538e567017f85d7e92174d15e248133bf0;p=mirror%2Fuserdir-ldap-cgi.git diff --git a/update.cgi b/update.cgi index f78a7eb..ae0b6ce 100755 --- a/update.cgi +++ b/update.cgi @@ -128,7 +128,7 @@ if (!($query->param('doupdate'))) { next; } if ($status =~ /^confirmed:/) { - my $data = join(':', 'password-is-confirmed', $uuid, $hosts, $crypted); + my $data = join(':', 'password-is-confirmed', 'sudo', $data{'uid'}, $uuid, $hosts, $crypted); my $hmac = hmac_sha1_hex( $data, $hmac_key); if ($status eq "confirmed:$hmac") { $status = 'confirmed'; @@ -143,7 +143,7 @@ if (!($query->param('doupdate'))) { (delete)\n"; $sudopassword .= $e; if ($status eq 'unconfirmed') { - my $data = join(':', 'confirm-new-password', $uuid, $hosts, $crypted); + my $data = join(':', 'confirm-new-password', 'sudo', $data{'uid'}, $uuid, $hosts, $crypted); my $hmac = hmac_sha1_hex( $data, $hmac_key); $confirmstring .= CGI::escapeHTML("confirm sudopassword $uuid $hosts $hmac\n"); }