Rev 630: connect to ctdbd in winbindd in
http://samba.org/~tridge/3_0-ctdb
tridge at samba.org
tridge at samba.org
Mon Sep 24 00:01:39 GMT 2007
------------------------------------------------------------
revno: 630
revision-id: tridge at samba.org-20070924000139-qa0k1drb292t6uoy
parent: tridge at samba.org-20070924000059-4t0o3lkzcd8o30au
committer: Andrew Tridgell <tridge at samba.org>
branch nick: s3-ctdb-tridge
timestamp: Mon 2007-09-24 10:01:39 +1000
message:
connect to ctdbd in winbindd
modified:
source/nsswitch/winbindd.c winbindd.c-20070210173807-1wjifrbwaz6xnmgl-735
source/nsswitch/winbindd_dual.c winbindd_dual.c-20070210173807-1wjifrbwaz6xnmgl-744
=== modified file 'source/nsswitch/winbindd.c'
--- a/source/nsswitch/winbindd.c 2007-04-27 08:53:44 +0000
+++ b/source/nsswitch/winbindd.c 2007-09-24 00:01:39 +0000
@@ -1036,6 +1036,10 @@
load_interfaces();
+ if (!NT_STATUS_IS_OK(message_ctdb_init(winbind_event_context(), False))) {
+ exit(1);
+ }
+
if (!secrets_init()) {
DEBUG(0,("Could not initialize domain trust account secrets. Giving up\n"));
=== modified file 'source/nsswitch/winbindd_dual.c'
--- a/source/nsswitch/winbindd_dual.c 2007-04-22 16:58:17 +0000
+++ b/source/nsswitch/winbindd_dual.c 2007-09-24 00:01:39 +0000
@@ -865,6 +865,11 @@
_exit(0);
}
+ /* reconnect to ctdb */
+ if (!NT_STATUS_IS_OK(message_ctdb_init(winbind_event_context(), False))) {
+ exit(1);
+ }
+
close_conns_after_fork();
if (!override_logfile) {
More information about the samba-cvs
mailing list