can't change behavior global user and pass alone MUST work as it did before

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13935 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-06-24 15:52:03 +00:00
parent 1d3d35b133
commit f7d99cf948
1 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ static abyss_bool is_authorized (const TSession *r, const char *command)
return FALSE;
}
if (!switch_strlen_zero(globals.realm) && !strcasecmp(domain_name, globals.realm) && !switch_strlen_zero(globals.user) && !strcmp(user, globals.user)) {
if (!switch_strlen_zero(globals.realm) && !switch_strlen_zero(globals.user) && !strcmp(user, globals.user)) {
switch_safe_free(user);
return TRUE;
}
@ -328,7 +328,7 @@ static abyss_bool http_directory_auth(TSession *r, char *domain_name)
goto fail;
}
if (!switch_strlen_zero(globals.realm) && !strcasecmp(domain_name, globals.realm) && !switch_strlen_zero(globals.user) && !switch_strlen_zero(globals.pass)) {
if (!switch_strlen_zero(globals.realm) && !switch_strlen_zero(globals.user) && !switch_strlen_zero(globals.pass)) {
if (at) {
switch_snprintf(z, sizeof(z), "%s@%s:%s", globals.user, globals.realm, globals.pass);
} else {