DSA key support
[mirror/userdir-ldap.git] / ud-info
diff --git a/ud-info b/ud-info
index f27a49e..3d31555 100755 (executable)
--- a/ud-info
+++ b/ud-info
@@ -42,7 +42,7 @@ AttrInfo = {"cn": ["First Name", 101],
            "labeledurl": ["Home Page",11],
            "latitude": ["Latitude",12],
            "longitude": ["Longitude",13],
-           "icqUIN": ["ICQ UIN",14],
+           "icquin": ["ICQ UIN",14],
            "privatesub": ["Debian-Private",15],
            "comment": ["Comment",116],
            "userpassword": ["Crypted Password",117],
@@ -71,7 +71,7 @@ AttrPrompt = {"cn": ["Common name or first name"],
              "longitude": ["XEarth latitude in ISO 6709 format - see /usr/share/zoneinfo/zone.tab or etak.com"],
              "dnszoneentry": ["DNS Zone fragment associated this this user"],
               "labeledurl": ["Web home page"],
-              "icqUIN": ["ICQ UIN Number"]};
+              "icquin": ["ICQ UIN Number"]};
 
 # Create a map of IDs to desc,value,attr
 OrderedIndex = {};
@@ -139,6 +139,20 @@ def PrintSshRSAKeys(Attrs):
 
       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;
@@ -147,6 +161,7 @@ def ShowAttrs(Attrs):
    PrintShadow(Attrs);
    PrintKeys(Attrs);
    PrintSshRSAKeys(Attrs);
+   PrintSshDSAKeys(Attrs);
 
    for at in Attrs[1].keys():
       if AttrInfo.has_key(at):