projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce17305
)
ud-mailgate: include name of unknown host in error message
author
Ansgar Burchardt
<ansgar@debian.org>
Tue, 3 Apr 2018 16:31:08 +0000
(18:31 +0200)
committer
Ansgar Burchardt
<ansgar@debian.org>
Tue, 3 Apr 2018 16:31:08 +0000
(18:31 +0200)
ud-mailgate
patch
|
blob
|
history
diff --git
a/ud-mailgate
b/ud-mailgate
index
e6b54a9
..
fd70c37
100755
(executable)
--- a/
ud-mailgate
+++ b/
ud-mailgate
@@
-297,7
+297,7
@@
def DoSSH(Str, Attrs, badkeys, uid):
if not machine_regex.match(m):
return "machine specification for ssh key contains invalid characters"
if m not in ValidHostNames:
- return "unknown machine
used in allowed_hosts stanza for ssh keys"
+ return "unknown machine
{} used in allowed_hosts stanza for ssh keys".format(m)
(fd, path) = tempfile.mkstemp(".pub", "sshkeytry", "/tmp")
f = open(path, "w")