X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-mailgate;h=4da438266d92e8eb1f84595317c04115836c21ae;hb=74d3791d33481944e3960dcda23842838ef3dcd3;hp=51942f14289416fec8ad28c423cfc39522ca47b4;hpb=653566b328a70f1f4b765967d72660ebae44473e;p=mirror%2Fuserdir-ldap.git diff --git a/ud-mailgate b/ud-mailgate index 51942f1..4da4382 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -30,6 +30,7 @@ SeenList = {} DNS = {} SSHFingerprint = re.compile('^(\d+) ([0-9a-f\:]{47}) (.+)$') +SSHRSA1Match = re.compile('^^(.* )?\d+ \d+ \d+') ArbChanges = {"c": "..", "l": ".*", @@ -241,9 +242,9 @@ def DoSSH(Str, Attrs, badkeys, uid): g = Match.groups() typekey = g[1] if Match == None: - Match = re.compile('^1024 (\d+) ').match(Str) + Match = SSHRSA1Match.match(Str) if Match is not None: - return "SSH1 keys not supported anymore" + return "RSA1 keys not supported anymore" return None; (fd, path) = tempfile.mkstemp(".pub", "sshkeytry", "/tmp")