Restore some sense of security to manager

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47912 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Mark Spencer 19 years ago
parent a69ac09748
commit cc0c154f0e

@ -1981,6 +1981,10 @@ static int process_message(struct mansession *s, struct message *m)
return 0;
}
if (!s->authenticated && strcasecmp(action, "Login") && strcasecmp(action, "Logoff") && strcasecmp(action, "Challenge")) {
astman_send_error(s, m, "Permission denied");
return 0;
}
/* XXX should we protect the list navigation ? */
for (tmp = first_action ; tmp; tmp = tmp->next) {
if (!strcasecmp(action, tmp->action)) {

Loading…
Cancel
Save