summaryrefslogtreecommitdiff
path: root/source/samrd/srv_samr_dom_tdb.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-02-07 23:46:09 +0000
committerLuke Leighton <lkcl@samba.org>2000-02-07 23:46:09 +0000
commita4a6ed27df245c98217276a2919673164387b0aa (patch)
tree477eac9acd7b804522036e4dfbde95f337efc42b /source/samrd/srv_samr_dom_tdb.c
parentb46bb2a66740926c5093b728c259fbf8aa89048d (diff)
downloadsamba-a4a6ed27df245c98217276a2919673164387b0aa.tar.gz
trying to sort out policy handle state info, and making a mess of it.
how to set up user-security-context info on a per-connection basis: each POLICY_HND that is created must have a vuser_key associated with it. this must be transferred from POLICY_HND to POLICY_HND (e.g samr_open_domain(connect_pol, &domain_pol) { policy_link_key(connect_pol, domain_pol); } so that the user session key can be picked up from a chain of samr_connect(), samr_open_domain(), samr_open_user(), samr_set_userinfo(). the only consistent info is the POLICY_HND, passed from one call to the next.
Diffstat (limited to 'source/samrd/srv_samr_dom_tdb.c')
-rw-r--r--source/samrd/srv_samr_dom_tdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/samrd/srv_samr_dom_tdb.c b/source/samrd/srv_samr_dom_tdb.c
index 2f447b0fa17..515134e6583 100644
--- a/source/samrd/srv_samr_dom_tdb.c
+++ b/source/samrd/srv_samr_dom_tdb.c
@@ -140,7 +140,8 @@ uint32 _samr_open_domain(const POLICY_HND *connect_pol,
}
/* get a (unique) handle. open a policy on it. */
- if (!open_policy_hnd(get_global_hnd_cache(), domain_pol, ace_perms))
+ if (!open_policy_hnd(get_global_hnd_cache(),
+ get_sec_ctx(), domain_pol, ace_perms))
{
return NT_STATUS_ACCESS_DENIED;
}