aboutsummaryrefslogtreecommitdiffstats
path: root/main/manager.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-11 16:05:43 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-11 16:05:43 +0000
commit46ae94104aef9538fa0e96e478552654b939a979 (patch)
treed3bc18b4e07b097b0527524872bb2c6138b52b37 /main/manager.c
parenta09197f6859b20ced414494d0d1eae3a4e17045f (diff)
When MD5 authentication is not possible because there is no challenge present,
either because the Challenge action was never issued, or some other reason, give a proper error message and return an error instead of claiming that the user wasn't found. (reported by jsmith on IRC) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@63886 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/manager.c')
-rw-r--r--main/manager.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/manager.c b/main/manager.c
index 383411fbe..b7c37c925 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -946,6 +946,11 @@ static int authenticate(struct mansession *s, const struct message *m)
ast_config_destroy(cfg);
return -1;
}
+ } else {
+ ast_log(LOG_DEBUG, "MD5 authentication is not possible. challenge: '%s'\n",
+ S_OR(s->challenge, ""));
+ ast_config_destroy(cfg);
+ return -1;
}
} else if (password && !strcmp(password, pass)) {
break;