summaryrefslogtreecommitdiff
path: root/libgpo
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-09-08 17:08:52 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-09-08 19:33:13 +1000
commita005acfe8ed0d2bf4cfc69ef59ba513a4409060b (patch)
tree2561a879aa60250c7a2e265d4ec989fb10832e39 /libgpo
parent3e227d8544a020d1aea24c38c9ca45a75d14c3f1 (diff)
downloadsamba-a005acfe8ed0d2bf4cfc69ef59ba513a4409060b.tar.gz
samba-a005acfe8ed0d2bf4cfc69ef59ba513a4409060b.tar.bz2
samba-a005acfe8ed0d2bf4cfc69ef59ba513a4409060b.zip
libgpo: call security_token_has_sid() directly
Diffstat (limited to 'libgpo')
-rw-r--r--libgpo/gpo_sec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgpo/gpo_sec.c b/libgpo/gpo_sec.c
index c27ca55f97..456a218e19 100644
--- a/libgpo/gpo_sec.c
+++ b/libgpo/gpo_sec.c
@@ -103,7 +103,7 @@ static NTSTATUS gpo_sd_check_ace_denied_object(const struct security_ace *ace,
if (gpo_sd_check_agp_object(ace) &&
gpo_sd_check_agp_access_bits(ace->access_mask) &&
- nt_token_check_sid(&ace->trustee, token)) {
+ security_token_has_sid(token, &ace->trustee)) {
sid_str = dom_sid_string(NULL, &ace->trustee);
DEBUG(10,("gpo_sd_check_ace_denied_object: "
"Access denied as of ace for %s\n",
@@ -125,7 +125,7 @@ static NTSTATUS gpo_sd_check_ace_allowed_object(const struct security_ace *ace,
if (gpo_sd_check_agp_object(ace) &&
gpo_sd_check_agp_access_bits(ace->access_mask) &&
- nt_token_check_sid(&ace->trustee, token)) {
+ security_token_has_sid(token, &ace->trustee)) {
sid_str = dom_sid_string(NULL, &ace->trustee);
DEBUG(10,("gpo_sd_check_ace_allowed_object: "
"Access granted as of ace for %s\n",