diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-09-17 13:08:59 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-14 02:35:04 +0000 |
commit | deb7c0243663d3fa435531bad77d2897b1d15285 (patch) | |
tree | 61a4500d22c3641aa161dfa4dd053c1527503a7c /source3/lib/util_sid.c | |
parent | c41bb6e846b61b92295887fcbfa670e3f5fbbb46 (diff) | |
download | samba-deb7c0243663d3fa435531bad77d2897b1d15285.tar.gz |
s3 Replace is_sid_in_token() with security_token_has_sid() from common code
The two routines are identical, so there is no need to keep both.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/lib/util_sid.c')
-rw-r--r-- | source3/lib/util_sid.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index d28333f9dab..25933116c45 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -441,17 +441,6 @@ bool is_null_sid(const struct dom_sid *sid) return dom_sid_equal(sid, &null_sid); } -bool is_sid_in_token(const struct security_token *token, const struct dom_sid *sid) -{ - int i; - - for (i=0; i<token->num_sids; i++) { - if (dom_sid_compare(sid, &token->sids[i]) == 0) - return true; - } - return false; -} - NTSTATUS sid_array_from_info3(TALLOC_CTX *mem_ctx, const struct netr_SamInfo3 *info3, struct dom_sid **user_sids, |