]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Revert "cli_rpc_pipe_open_noauth must take the user/domain from the smb session"
authorVolker Lendecke <vl@samba.org>
Fri, 25 Apr 2008 14:31:00 +0000 (16:31 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 25 Apr 2008 14:31:00 +0000 (16:31 +0200)
This reverts commit 6f08128cf2722618e74b603e180e7e2a83d7d07a.

source/rpc_client/cli_pipe.c

index 748a000b479bbcf05d4f81f2ac09abb2b73a312c..1897cff18e8cac54e0b4106df112abbd0d90f75f 100644 (file)
@@ -2482,24 +2482,6 @@ struct rpc_pipe_client *cli_rpc_pipe_open_noauth(struct cli_state *cli, int pipe
                return NULL;
        }
 
-       /*
-        * This is a bit of an abstraction violation due to the fact that an
-        * anonymous bind on an authenticated SMB inherits the user/domain
-        * from the enclosing SMB creds
-        */
-
-       TALLOC_FREE(auth->user_name);
-       TALLOC_FREE(auth->domain);
-
-       auth->user_name = talloc_strdup(auth, cli->user_name);
-       auth->domain = talloc_strdup(auth, cli->domain);
-
-       if ((auth->user_name == NULL) || (auth->domain == NULL)) {
-               *perr = NT_STATUS_NO_MEMORY;
-               TALLOC_FREE(result);
-               return NULL;
-       }
-
        *perr = rpc_pipe_bind(result, auth);
        if (!NT_STATUS_IS_OK(*perr)) {
                int lvl = 0;