X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-mailgate;h=b158ba885b813fd548f8b09694075cbf7f8ed259;hb=0050d73a0bc648610b072c3a82a7bae0241d869c;hp=48a38a19da4844ed0771424512a46bc5b78ac1d3;hpb=529a3f21a560e3f6ff85c875ccd4b2a9fb3b37bd;p=mirror%2Fuserdir-ldap.git diff --git a/ud-mailgate b/ud-mailgate index 48a38a1..b158ba8 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": ".*", @@ -48,6 +49,7 @@ ArbChanges = {"c": "..", "mailDisableMessage": ".*", "mailGreylisting": "^(TRUE|FALSE)$", "mailCallout": "^(TRUE|FALSE)$", + "VoIP": ".*", }; DelItems = {"c": None, @@ -75,6 +77,7 @@ DelItems = {"c": None, "mailRHSBL": None, "mailWhitelist": None, "mailDisableMessage": None, + "VoIP": None, }; # Decode a GPS location from some common forms @@ -239,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")