提交 f7d99cf9 authored 作者: Brian West's avatar Brian West

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
上级 1d3d35b1
......@@ -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 {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论