svn commit: samba r17997 - in branches/SAMBA_3_0/source: libads nsswitch

jra at samba.org jra at samba.org
Sat Sep 2 02:04:42 GMT 2006


Author: jra
Date: 2006-09-02 02:04:41 +0000 (Sat, 02 Sep 2006)
New Revision: 17997

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

Log:
Ensure lockdir exists for winbindd. Store tmp
krb5.conf files under lockdir, not privatedir.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/libads/kerberos.c
   branches/SAMBA_3_0/source/nsswitch/winbindd.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/kerberos.c
===================================================================
--- branches/SAMBA_3_0/source/libads/kerberos.c	2006-09-02 01:34:37 UTC (rev 17996)
+++ branches/SAMBA_3_0/source/libads/kerberos.c	2006-09-02 02:04:41 UTC (rev 17997)
@@ -474,7 +474,7 @@
 BOOL create_local_private_krb5_conf_for_domain(const char *realm, const char *domain, struct in_addr ip)
 {
 	XFILE *xfp = NULL;
-	char *dname = talloc_asprintf(NULL, "%s/smb_krb5", lp_private_dir());
+	char *dname = talloc_asprintf(NULL, "%s/smb_krb5", lp_lockdir());
 	char *fname = NULL;
 	char *file_contents = NULL;
 	size_t flen = 0;

Modified: branches/SAMBA_3_0/source/nsswitch/winbindd.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd.c	2006-09-02 01:34:37 UTC (rev 17996)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd.c	2006-09-02 02:04:41 UTC (rev 17997)
@@ -963,6 +963,10 @@
 		exit(1);
 	}
 
+	if (!directory_exist(lp_lockdir(), NULL)) {
+		mkdir(lp_lockdir(), 0755);
+	}
+
 	/* Setup names. */
 
 	if (!init_names())



More information about the samba-cvs mailing list