Commit 37a19abb authored by Leigh Stoller's avatar Leigh Stoller

Reorder syslog ststements slightly.

parent 4f7a0efd
......@@ -162,6 +162,11 @@ class MyServer(SSL.ForkingSSLServer, SimpleXMLRPCDispatcher):
self.logit('User "%s" is not active' % self.user)
raise Exception('User "%s" is not active' % self.user)
self.glist = self.getusergroups(self.user);
if len(self.glist) == 0:
self.logit('No groups for user: "%s"' % self.user)
raise Exception('No groups for user: "%s"' % self.user)
#
# Check the certificate serial number. At the moment, the serial
# must match a certificate that is in the DB for that user. This
......@@ -173,11 +178,6 @@ class MyServer(SSL.ForkingSSLServer, SimpleXMLRPCDispatcher):
self.logit('No such cert with serial "%s"' % serial)
raise Exception('No such cert with serial "%s"' % serial)
self.glist = self.getusergroups(self.user);
if len(self.glist) == 0:
self.logit('No groups for user: "%s"' % self.user)
raise Exception('No groups for user: "%s"' % self.user)
self.logit("Connect from %s: %s %s" %
(client[0], self.user, str(self.glist)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment