Rev 635: smbpasswd and pdbedit need ctdb enabled in http://samba.org/~tridge/3_0-ctdb

tridge at samba.org tridge at samba.org
Fri Sep 28 21:11:43 GMT 2007


------------------------------------------------------------
revno: 635
revision-id: tridge at samba.org-20070928211141-jdzu9gp2g094wzok
parent: tridge at samba.org-20070925045220-oaeja7d7ms4to01i
committer: Andrew Tridgell <tridge at samba.org>
branch nick: s3-ctdb-tridge
timestamp: Sat 2007-09-29 07:11:41 +1000
message:
  smbpasswd and pdbedit need ctdb enabled
modified:
  source/utils/pdbedit.c         pdbedit.c-20070210173807-1wjifrbwaz6xnmgl-1151
  source/utils/smbpasswd.c       smbpasswd.c-20070210173807-1wjifrbwaz6xnmgl-1160
=== modified file 'source/utils/pdbedit.c'
--- a/source/utils/pdbedit.c	2007-03-24 23:08:59 +0000
+++ b/source/utils/pdbedit.c	2007-09-28 21:11:41 +0000
@@ -836,6 +836,9 @@
 		exit(1);
 	}
 
+	/* We must set up a connection to CTDB (if clustering is enabled) */
+	message_ctdb_init(event_context_init(NULL), False);
+
 	if(!initialize_password_db(False, NULL))
 		exit(1);
 

=== modified file 'source/utils/smbpasswd.c'
--- a/source/utils/smbpasswd.c	2007-04-04 11:05:40 +0000
+++ b/source/utils/smbpasswd.c	2007-09-28 21:11:41 +0000
@@ -583,6 +583,9 @@
 		exit(1);
 	}
 
+	/* We must set up a connection to CTDB (if clustering is enabled) */
+	message_ctdb_init(event_context_init(NULL), False);
+
 	if (local_flags & LOCAL_AM_ROOT) {
 		secrets_init();
 		return process_root(local_flags);



More information about the samba-cvs mailing list