patch for problem with winbindd
Nigel Williams
nigel at veritas.com
Wed Oct 3 13:08:04 GMT 2001
A small patch for winbindd_util.c
nigel
--- winbind_util.c_was Wed Oct 3 12:57:40 2001
+++ winbindd_util.c Wed Oct 3 13:00:22 2001
@@ -299,6 +299,30 @@
domain = next;
}
+
+ /*
+ To fix a bug where the domain entry does not have its
+ controller set ie. domain info has not yet been fetched.
+ This stops server_state.lsa_handle from being closed in
+ winbindd_kill_connections. If not closed it will not be
+ reopened. get_trusted_domains() is only called when the
+ handle is reopened and hence the domain is never put back
+ in the trusted domain list.
+
+ This is not a complete fix but should work for the kill all
+ connections case and this case is the only one I have found
+ where the domain structures are removed from the domain list.
+ */
+
+ if(server_state.lsa_handle_open) {
+
+ DEBUG(1, ("winbindd_kill_connections:close LSA connections.\n"));
+
+ server_state.pwdb_initialised = False;
+ server_state.lsa_handle_open = False;
+ wb_lsa_close(&server_state.lsa_handle);
+ }
+
}
static BOOL get_any_dc_name(char *domain, fstring srv_name)
More information about the samba-technical
mailing list