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