Notify users about unsupported SSH1 keys
[mirror/userdir-ldap.git] / ud-mailgate
index e853056..7c62c88 100755 (executable)
@@ -174,6 +174,9 @@ def DoPosition(Str,Attrs):
 def DoSSH(Str,Attrs):
    Match = SSH2AuthSplit.match(Str);
    if Match == None:
+      Match = re.compile('^1024 (\d+) ').match(Str)
+      if Match is not None:
+         return "SSH1 keys not supported anymore"
       return None;
    
    global SeenKey;