svn commit: samba r18943 - in branches/SAMBA_4_0/source/lib: .

tridge at samba.org tridge at samba.org
Wed Sep 27 06:02:08 GMT 2006


Author: tridge
Date: 2006-09-27 06:02:07 +0000 (Wed, 27 Sep 2006)
New Revision: 18943

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18943

Log:

Samba4 wants its databases private to root. I know some of them could
potentially be public, but we'd need to think about them
carefully.

Modified:
   branches/SAMBA_4_0/source/lib/db_wrap.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/db_wrap.c
===================================================================
--- branches/SAMBA_4_0/source/lib/db_wrap.c	2006-09-27 05:57:41 UTC (rev 18942)
+++ branches/SAMBA_4_0/source/lib/db_wrap.c	2006-09-27 06:02:07 UTC (rev 18943)
@@ -124,6 +124,11 @@
 	if (lp_parm_bool(-1, "ldb", "nosync", False)) {
 		flags |= LDB_FLG_NOSYNC;
 	}
+
+	/* we usually want Samba databases to be private. If we later
+	   find we need one public, we will need to add a parameter to
+	   ldb_wrap_connect() */
+	ldb_set_create_perms(ldb, 0600);
 	
 	ret = ldb_connect(ldb, real_url, flags, options);
 	if (ret != LDB_SUCCESS) {



More information about the samba-cvs mailing list