diff options
-rw-r--r-- | source3/libads/kerberos.c | 2 | ||||
-rw-r--r-- | source3/nsswitch/winbindd.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index 4ddbf0abc5..a077ce1fce 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -474,7 +474,7 @@ int kerberos_kinit_password(const char *principal, 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; diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index f6e742ac20..df8f821c8b 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -963,6 +963,10 @@ int main(int argc, char **argv) exit(1); } + if (!directory_exist(lp_lockdir(), NULL)) { + mkdir(lp_lockdir(), 0755); + } + /* Setup names. */ if (!init_names()) |