[Da-tools-commits] ./debian/userdir-ldap-cgi r105: Switch host and hostname in update cgi for sudopasswd (so "gluck" gets

Peter Palfrader peter at palfrader.org
Sun Sep 14 22:44:23 UTC 2008


------------------------------------------------------------
revno: 105
committer: Peter Palfrader <peter at palfrader.org>
branch nick: userdir-ldap-cgi
timestamp: Mon 2008-09-15 00:44:23 +0200
message:
  Switch host and hostname in update cgi for sudopasswd (so "gluck" gets
  displayed and "gluck.debian.org" stored).
modified:
  debian/changelog
  update.cgi
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog	2008-09-14 21:42:48 +0000
+++ b/debian/changelog	2008-09-14 22:44:23 +0000
@@ -1,3 +1,10 @@
+userdir-ldap-cgi (0.3.16) unstable; urgency=low
+
+  * Switch host and hostname in update cgi for sudopasswd (so "gluck" gets
+    displayed and "gluck.debian.org" stored).
+
+ -- Peter Palfrader <weasel at debian.org>  Mon, 15 Sep 2008 00:43:55 +0200
+
 userdir-ldap-cgi (0.3.15) unstable; urgency=low
 
   * Allow setting of userpassword.

=== modified file 'update.cgi'
--- a/update.cgi	2008-09-14 21:59:44 +0000
+++ b/update.cgi	2008-09-14 22:44:23 +0000
@@ -133,7 +133,8 @@
                  <td><input name=\"sudopassword-delete-$uuid\" type=\"checkbox\" value=\"delete\"> (delete)</td></tr>\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 @@
       my $data = $host_entries->{$dn};
       my $host = $data->{'host'}->[0];
       my $hostname = $data->{'hostname'}->[0];
-      $sudopasswordhosts .= "<option value=\"$host\">$hostname\n";
+      $sudopasswordhosts .= "<option value=\"$hostname\">$host\n";
   };
   $sudopasswordhosts .= '</select>';
 



More information about the Da-tools-commits mailing list