[pve-devel] r5427 - pve-manager/pve2/lib/PVE

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Jan 25 07:28:51 CET 2011


Author: dietmar
Date: 2011-01-25 07:28:51 +0100 (Tue, 25 Jan 2011)
New Revision: 5427

Modified:
   pve-manager/pve2/lib/PVE/REST.pm
Log:
log successful auth


Modified: pve-manager/pve2/lib/PVE/REST.pm
===================================================================
--- pve-manager/pve2/lib/PVE/REST.pm	2011-01-25 06:09:33 UTC (rev 5426)
+++ pve-manager/pve2/lib/PVE/REST.pm	2011-01-25 06:28:51 UTC (rev 5427)
@@ -20,7 +20,6 @@
 
 use Data::Dumper; # fixme: remove
 
-my $realm = 'PVE API Server';
 my $cookie_name = 'PVEAuthCookie';
 
 my $baseuri = "/api2";
@@ -282,6 +281,7 @@
 	}
 
 	if ($ticket = create_ticket($user, $pw)) {
+	    PVE::Cluster::log_msg('info', "root", "successful auth for user '$user'");
 	    return { status => HTTP_OK, ticket => $ticket, 
 		     data => { ticket => $ticket, cert => $sslcert }};
 	}



More information about the pve-devel mailing list