]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
can't change behavior global user and pass alone MUST work as it did before
authorBrian West <brian@freeswitch.org>
Wed, 24 Jun 2009 15:52:03 +0000 (15:52 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 24 Jun 2009 15:52:03 +0000 (15:52 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13935 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c

index 9069cfe3d90a096bb33d30dc56139e70dffcc098..0a422ebd5ae542a9d1c53ab8f0f8d8c45f3621c9 100644 (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 {