Skip to content
Snippets Groups Projects
Commit f4b67db3 authored by Brian Moe's avatar Brian Moe
Browse files

Turned off removal of old user cert DNs not found in the LIGO LDAP.

parent 1e362095
No related branches found
No related tags found
No related merge requests found
......@@ -85,8 +85,9 @@ class Command(NoArgsCommand):
current_dns = set([ cert.subject for cert in user.x509cert_set.all() ])
if current_dns != new_dns:
for dn in current_dns - new_dns:
X509Cert.objects.get(subject=dn).delete()
# XXX Some certs put in by hand are getting blow away. I don't think this feature is really needed anyway.
# for dn in current_dns - new_dns:
# X509Cert.objects.get(subject=dn).delete()
for dn in new_dns - current_dns:
cert, created = X509Cert.objects.get_or_create(subject=dn)
if created:
......
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