X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap-cgi.git;a=blobdiff_plain;f=update.cgi;h=223559f276b32786f05c8604892b29be428a1db2;hp=3077e6a70cdbc8f613552086e9efc898aa3adb3a;hb=cf6454a1b253861a7167037e07cc2693bf4fe66a;hpb=40370d4d18e676d84988530673ce69f6193aab4a
diff --git a/update.cgi b/update.cgi
index 3077e6a..223559f 100755
--- a/update.cgi
+++ b/update.cgi
@@ -133,7 +133,8 @@ if (!($query->param('doupdate'))) {
(delete) | \n";
$sudopassword .= $e;
if ($status eq 'unconfirmed') {
- my $hmac = hmac_sha1_hex( join(':', 'confirm-new-password', $uuid, $hosts, $crypted), $hmac_key);
+ my $data = join(':', 'confirm-new-password', $uuid, $hosts, $crypted);
+ my $hmac = hmac_sha1_hex( $data, $hmac_key);
$confirmstring .= "confirm sudopassword $uuid $hosts $hmac\n";
}
};
@@ -146,7 +147,7 @@ if (!($query->param('doupdate'))) {
my $data = $host_entries->{$dn};
my $host = $data->{'host'}->[0];
my $hostname = $data->{'hostname'}->[0];
- $sudopasswordhosts .= "