X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-info;h=4b0c10399da88fc545c0e28013ed51619892c886;hp=71597720a9d91c1d2ea05b2fccbbf34a961d8c81;hb=32e0c5640dc72acf4c362fd373f26be78a45a277;hpb=a53cd78ee9f122ade507aaeb4efc027b055b22f2 diff --git a/ud-info b/ud-info index 7159772..4b0c103 100755 --- a/ud-info +++ b/ud-info @@ -121,26 +121,7 @@ def PrintKeys(Attrs): First = 1; else: print "%-24s:" % (""), - - # PGP Print - if (len(x) == 32): - I = 0; - while (I < len(x)): - print x[I]+x[I+1], - I = I + 2; - if I == 32/2: - print "", - elif (len(x) == 40): - # GPG Print - I = 0; - while (I < len(x)): - print x[I]+x[I+1]+x[I+2]+x[I+3], - I = I + 4; - if I == 40/2: - print "", - else: - print x, - print; + print FormatPGPKey(x); # Print the SSH RSA Authentication keys for a user def PrintSshRSAKeys(Attrs):