+# Handle a SSH DSA authentication key, the line format is:
+# ssh-dss [key] [comment]
+def DoSSH2(Str,Attrs):
+ Match = SSHDSAAuthSplit.match(Str);
+ if Match == None:
+ return None;
+
+ global SeenDSA;
+ if SeenDSA:
+ Attrs.append((ldap.MOD_ADD,"sshdsaauthkey",Str));
+ return "SSH2 Key added "+FormatSSH2Auth(Str);
+
+ Attrs.append((ldap.MOD_REPLACE,"sshdsaauthkey",Str));
+ SeenDSA = 1;
+ return "SSH2 Keys replaced with "+FormatSSH2Auth(Str);
+