Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
#include "auth.h"
#include "messages.h"
#include "../lib/util/pidfile.h"
#include "auth.h"
#include "messages.h"
#include "../lib/util/pidfile.h"
+#include "util_cluster.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_WINBIND
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_WINBIND
- if (lp_clustering()) {
- NTSTATUS status;
-
- status = ctdbd_probe();
- if (!NT_STATUS_IS_OK(status)) {
- DEBUG(0, ("clustering=yes but ctdbd connect failed: "
- "%s\n", nt_errstr(status)));
- exit(1);
- }
+ if (!cluster_probe_ok()) {
+ exit(1);
}
/* Initialise messaging system */
}
/* Initialise messaging system */