mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
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:
parent
1d3d35b133
commit
f7d99cf948
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user