aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-11 16:21:45 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-11 16:21:45 +0000
commit9322f6b218085e2a50808903de1a5d52ad9a3974 (patch)
treedb47aa84b5e217ad5a15a0c741c6ea74ab852a23 /main
parent632a037c9d7e57c9f6c2b04c0509ba7f57853e8c (diff)
Merged revisions 63886 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r63886 | russell | 2007-05-11 11:05:43 -0500 (Fri, 11 May 2007) | 6 lines 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/trunk@63902 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/manager.c b/main/manager.c
index bf0ba3898..e1377d4ac 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -1002,6 +1002,10 @@ static int authenticate(struct mansession *s, const struct message *m)
len += sprintf(md5key + len, "%2.2x", digest[x]);
if (!strcmp(md5key, key))
error = 0;
+ } else {
+ ast_log(LOG_DEBUG, "MD5 authentication is not possible. challenge: '%s'\n",
+ S_OR(s->challenge, ""));
+ return -1;
}
} else if (password) {
const char *pass = astman_get_header(m, "Secret");