X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-info;h=dbbb61af978883441c6eca2557b812bf10bd9bfe;hb=c36736bdd1248d73961a9c5df8f3b8e0434b75f1;hp=3d3155561b8c1a611f557befcbff2af42f82f848;hpb=205ad9a922a6940ad5c85104f3fd08c5b4874138;p=mirror%2Fuserdir-ldap.git diff --git a/ud-info b/ud-info index 3d31555..dbbb61a 100755 --- a/ud-info +++ b/ud-info @@ -132,27 +132,13 @@ def PrintSshRSAKeys(Attrs): First = 0; for x in Attrs[1]["sshrsaauthkey"]: if First == 0: - print "%-24s:" % ("SSH RSA Auth Keys"), + print "%-24s:" % ("SSH Auth Keys"), First = 1; else: print "%-24s:" % (""), print FormatSSHAuth(x); -# Print the SSH RSA Authentication keys for a user -def PrintSshDSAKeys(Attrs): - if Attrs[1].has_key("sshdsaauthkey") == 0: - return; - First = 0; - for x in Attrs[1]["sshdsaauthkey"]: - if First == 0: - print "%-24s:" % ("SSH DSA Auth Keys"), - First = 1; - else: - print "%-24s:" % (""), - - print FormatSSH2Auth(x); - # Display all of the attributes in a numbered list def ShowAttrs(Attrs): print; @@ -161,7 +147,6 @@ def ShowAttrs(Attrs): PrintShadow(Attrs); PrintKeys(Attrs); PrintSshRSAKeys(Attrs); - PrintSshDSAKeys(Attrs); for at in Attrs[1].keys(): if AttrInfo.has_key(at):