summaryrefslogtreecommitdiffstats
path: root/source/rpc_client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-02-16 13:30:19 +0000
committerGünther Deschner <gd@samba.org>2007-02-16 13:30:19 +0000
commit2204f8d6fa30107bee2ce621a6b25cc77808c8c2 (patch)
treed4ed6c51f4efee887b25f345ebcc58ecc41037a5 /source/rpc_client
parent8c4894e5a943e1dfef6b31064e10525efbc99ced (diff)
downloadsamba-2204f8d6fa30107bee2ce621a6b25cc77808c8c2.tar.gz
samba-2204f8d6fa30107bee2ce621a6b25cc77808c8c2.tar.xz
samba-2204f8d6fa30107bee2ce621a6b25cc77808c8c2.zip
r21382: Important fix for winbind when using non-AD domains.
Jeremy, I'm afraid you removed the "domain->initialized" from the set_dc_types_and_flags() call when the connect to PI_LSARPC_DS failed (with rev. 19148). This causes now that init_dc_connection_network is called again and again which in turn rescans the DC each time (which of course fails each time with NT_STATUS_BUFFER_TOO_SMALL). Just continue with the non-PI_LSARPC_DS scan so that the domain is initialized properly. Guenther
Diffstat (limited to 'source/rpc_client')
-rw-r--r--source/rpc_client/cli_pipe.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c
index 547f300f3ae..61f5ee51bd0 100644
--- a/source/rpc_client/cli_pipe.c
+++ b/source/rpc_client/cli_pipe.c
@@ -2261,7 +2261,13 @@ struct rpc_pipe_client *cli_rpc_pipe_open_noauth(struct cli_state *cli, int pipe
*perr = rpc_pipe_bind(result, PIPE_AUTH_TYPE_NONE, PIPE_AUTH_LEVEL_NONE);
if (!NT_STATUS_IS_OK(*perr)) {
- DEBUG(0, ("cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe %s failed with error %s\n",
+ int lvl = 0;
+ if (pipe_idx == PI_LSARPC_DS) {
+ /* non AD domains just don't have this pipe, avoid
+ * level 0 statement in that case - gd */
+ lvl = 3;
+ }
+ DEBUG(lvl, ("cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe %s failed with error %s\n",
cli_get_pipe_name(pipe_idx), nt_errstr(*perr) ));
cli_rpc_pipe_close(result);
return NULL;