diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-01-11 14:04:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:42 -0500 |
commit | a249198d539685be5cb97e179e85ae00dbba8c83 (patch) | |
tree | 1e0ae58592cc6a4d7a09934a1fabca03e53871b6 /source4/lib | |
parent | 7ab7debcf17d833ac15512604f73b551c27534c2 (diff) | |
download | samba-a249198d539685be5cb97e179e85ae00dbba8c83.tar.gz samba-a249198d539685be5cb97e179e85ae00dbba8c83.tar.bz2 samba-a249198d539685be5cb97e179e85ae00dbba8c83.zip |
r4682: A LDB-based secrets implementation in Samba4.
This uses LDB (a local secrets.ldb and the global samdb) to fill out
the secrets from an LSA perspective.
Some small changes to come, but the bulk of the work is now done.
A re-provision is required after this change.
Andrew Bartlett
(This used to be commit ded33033521a6a1c7ea80758c5c5aeeebb182a51)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/util.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/lib/util.c b/source4/lib/util.c index ac5124840e..9341a011af 100644 --- a/source4/lib/util.c +++ b/source4/lib/util.c @@ -712,6 +712,21 @@ char *lib_path(TALLOC_CTX* mem_ctx, const char *name) return fname; } +/** + * @brief Returns an absolute path to a file in the Samba private directory. + * + * @param name File to find, relative to PRIVATEDIR. + * + * @retval Pointer to a talloc'ed string containing the full path. + **/ + +char *private_path(TALLOC_CTX* mem_ctx, const char *name) +{ + char *fname; + fname = talloc_asprintf(mem_ctx, "%s/%s", lp_private_dir(), name); + return fname; +} + /* return a path in the smbd.tmp directory, where all temporary file for smbd go. If NULL is passed for name then return the directory |