Skip to content
Snippets Groups Projects
Commit ad9b8b25 authored by GraceDB Live's avatar GraceDB Live
Browse files

I (Branson) found this local change to refresh_users_from_ldap on archie. It...

I (Branson) found this local change to refresh_users_from_ldap on archie. It looks harmless, so I'm keeping it.
parent e965d7b7
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,10 @@ class Command(NoArgsCommand):
# revoke staff/superuser if not active.
user.is_staff = user.is_staff and is_active
user.is_superuser = user.is_superuser and is_active
user.save()
try:
user.save()
except Exception, e:
print "Failed to save user '%s'. (%s)" % (ldap_dn, first_name+" "+last_name)
# update X509 certs for user
current_dns = set([ cert.subject for cert in user.x509cert_set.all() ])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment