X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-mailgate;h=1eb42c1bb061de8cc7211298973cde4ffbce1506;hp=aaf1e2ad742e5d3f102aa2e6c0e057aee6e32846;hb=f2981c64295da12a8b67fb20380e7391c1979e7d;hpb=2fd1b80485d816389e3ade4a3388d8652cee3f83 diff --git a/ud-mailgate b/ud-mailgate index aaf1e2a..1eb42c1 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -323,10 +323,10 @@ def DoSSH(Str, Attrs, badkeys, uid): Match = SSHFingerprint.match(output) g = Match.groups() - if int(g[0]) < 1024 and (typekey != "ed25519"): + if int(g[0]) < 2048 and (typekey != "ed25519"): try: # Body - Subst["__ERROR__"] = "SSH keysize %s is below limit 1024" % (g[0]) + Subst["__ERROR__"] = "SSH keysize %s is below limit 2048" % (g[0]) ErrReply = TemplateSubst(Subst,open(TemplatesDir+"admin-info","r").read()) Child = os.popen("/usr/sbin/sendmail -t","w") @@ -338,7 +338,7 @@ def DoSSH(Str, Attrs, badkeys, uid): sys.exit(EX_TEMPFAIL) # And now break and stop processing input, which sends a reply to the user. - raise UDFormatError, "SSH keys must have at least 1024 bits, processing halted, NOTHING MODIFIED AT ALL" + raise UDFormatError, "SSH keys must have at least 2048 bits, processing halted, NOTHING MODIFIED AT ALL" elif g[1] in badkeys: try: # Body