diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-03-21 01:30:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:58:59 -0500 |
commit | d64ccc01769ce274c74d8458f9ef81cdcc8986f6 (patch) | |
tree | 27c1b92cf2c0d482fdab208f33b876314cacb13e /source4/lib/registry/reg_samba.c | |
parent | b556df32a849eefa2f2f34868eee02f05451878d (diff) | |
download | samba-d64ccc01769ce274c74d8458f9ef81cdcc8986f6.tar.gz samba-d64ccc01769ce274c74d8458f9ef81cdcc8986f6.tar.bz2 samba-d64ccc01769ce274c74d8458f9ef81cdcc8986f6.zip |
r14599: Pass ACLs down the registry layer.
(This used to be commit 6cdefd8945eee5513a6993350ea71f12d4dbd6fa)
Diffstat (limited to 'source4/lib/registry/reg_samba.c')
-rw-r--r-- | source4/lib/registry/reg_samba.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/lib/registry/reg_samba.c b/source4/lib/registry/reg_samba.c index 71f7160686..4a88d96042 100644 --- a/source4/lib/registry/reg_samba.c +++ b/source4/lib/registry/reg_samba.c @@ -61,16 +61,18 @@ static WERROR reg_samba_get_predef (struct registry_context *ctx, uint32_t hkey, /* FIXME: HKEY_LOCAL_MACHINE\Security\SAM is an alias for HKEY_LOCAL_MACHINE\SAM */ - error = reg_open_hive(ctx, backend, location, NULL, k); + error = reg_open_hive(ctx, backend, location, ctx->session_info, ctx->credentials, k); talloc_free(backend); return error; } -_PUBLIC_ WERROR reg_open_local (struct registry_context **ctx) +_PUBLIC_ WERROR reg_open_local (struct registry_context **ctx, struct auth_session_info *session_info, struct cli_credentials *credentials) { *ctx = talloc(NULL, struct registry_context); + (*ctx)->credentials = talloc_reference(*ctx, credentials); + (*ctx)->session_info = talloc_reference(*ctx, session_info); (*ctx)->get_predefined_key = reg_samba_get_predef; return WERR_OK; |