summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-09-10 23:12:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:56 -0500
commit95e77b14b5440a9ced8fdf6dc803b90c9518b8e0 (patch)
tree8a75f69ae8dc9de885a253c5273e9ea0e05cf42f
parent972cba939c2791e88cef8ce808eb9f0662a529b1 (diff)
downloadsamba-misc-tags/initial-v3-0-unstable.tar.gz
samba-misc-tags/initial-v3-0-unstable.tar.xz
samba-misc-tags/initial-v3-0-unstable.zip
r25068: Older samba3 DCs will return DCERPC_FAULT_OP_RNG_ERROR for every opcode on thesamba-misc-tags/initial-v3-0-unstable
LSARPC_DS pipe, continue with no_lsarpc_ds mode here as well to get domain->initialized set to True. This avoids permanent scanning of Samba3 DCs in winbindd. Thanks Michael, for pointing this out. Guenther
-rw-r--r--source/nsswitch/winbindd_cm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/nsswitch/winbindd_cm.c b/source/nsswitch/winbindd_cm.c
index 0571cdad60b..85700272ea0 100644
--- a/source/nsswitch/winbindd_cm.c
+++ b/source/nsswitch/winbindd_cm.c
@@ -1696,6 +1696,16 @@ static void set_dc_type_and_flags_connect( struct winbindd_domain *domain )
DEBUG(5, ("set_dc_type_and_flags_connect: rpccli_ds_getprimarydominfo "
"on domain %s failed: (%s)\n",
domain->name, nt_errstr(result)));
+
+ /* older samba3 DCs will return DCERPC_FAULT_OP_RNG_ERROR for
+ * every opcode on the LSARPC_DS pipe, continue with
+ * no_lsarpc_ds mode here as well to get domain->initialized
+ * set - gd */
+
+ if (NT_STATUS_V(result) == DCERPC_FAULT_OP_RNG_ERROR) {
+ goto no_lsarpc_ds;
+ }
+
return;
}