From 4e9db0b1004aedf9eef69b9361ed6d9e69897a1e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 21 Oct 2008 18:05:48 -0700 Subject: Cope with MAXIMUM_ALLOWED_ACCESS requests when opening handles. Jeremy. --- source3/utils/net_rpc.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'source3/utils/net_rpc.c') diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 5f5a21dfbb..94feeafa69 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -3956,17 +3956,6 @@ static void free_user_token(NT_USER_TOKEN *token) SAFE_FREE(token->user_sids); } -static bool is_sid_in_token(NT_USER_TOKEN *token, DOM_SID *sid) -{ - int i; - - for (i=0; inum_sids; i++) { - if (sid_compare(sid, &token->user_sids[i]) == 0) - return true; - } - return false; -} - static void add_sid_to_token(NT_USER_TOKEN *token, DOM_SID *sid) { if (is_sid_in_token(token, sid)) -- cgit