summaryrefslogtreecommitdiff
path: root/source/lsarpcd
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/lsarpcd
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/lsarpcd')
-rw-r--r--source/lsarpcd/srv_lsa_samdb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/lsarpcd/srv_lsa_samdb.c b/source/lsarpcd/srv_lsa_samdb.c
index 170363167ee..ba7f60d43f4 100644
--- a/source/lsarpcd/srv_lsa_samdb.c
+++ b/source/lsarpcd/srv_lsa_samdb.c
@@ -43,7 +43,8 @@ uint32 _lsa_open_policy2(const UNISTR2 *server_name, POLICY_HND *hnd,
return NT_STATUS_INVALID_PARAMETER;
}
/* get a (unique) handle. open a policy on it. */
- if (!open_policy_hnd(get_global_hnd_cache(), hnd, des_access))
+ if (!open_policy_hnd(get_global_hnd_cache(),
+ get_sec_ctx(), hnd, des_access))
{
return NT_STATUS_ACCESS_DENIED;
}
@@ -64,7 +65,8 @@ uint32 _lsa_open_policy(const UNISTR2 *server_name, POLICY_HND *hnd,
}
/* get a (unique) handle. open a policy on it. */
- if (!open_policy_hnd(get_global_hnd_cache(), hnd, des_access))
+ if (!open_policy_hnd(get_global_hnd_cache(),
+ get_sec_ctx(), hnd, des_access))
{
return NT_STATUS_ACCESS_DENIED;
}