All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 37a19abb authored by Leigh B. Stoller's avatar Leigh B. 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