Ignore:
Timestamp:
May 26, 2009, 9:44:50 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/lib/util_sid.c

    r149 r228  
    665665}
    666666
     667bool is_sid_in_token(const NT_USER_TOKEN *token, const DOM_SID *sid)
     668{
     669        int i;
     670
     671        for (i=0; i<token->num_sids; i++) {
     672                if (sid_compare(sid, &token->user_sids[i]) == 0)
     673                        return true;
     674        }
     675        return false;
     676}
     677
    667678NTSTATUS sid_array_from_info3(TALLOC_CTX *mem_ctx,
    668679                              const struct netr_SamInfo3 *info3,
Note: See TracChangeset for help on using the changeset viewer.