diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-10-12 20:52:09 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-10-18 13:13:33 +1100 |
commit | 94fbe2e4bdab8bcd021fedfff71114bbf3d72ca1 (patch) | |
tree | 6d9868ac2d9ec549a50b77d5e024f3afb715831e /source3 | |
parent | 9068a3080b6d8980f46cc141fdf76b832d38ecf7 (diff) | |
download | samba-94fbe2e4bdab8bcd021fedfff71114bbf3d72ca1.tar.gz samba-94fbe2e4bdab8bcd021fedfff71114bbf3d72ca1.tar.bz2 samba-94fbe2e4bdab8bcd021fedfff71114bbf3d72ca1.zip |
s3:auth_util: add the uid with WBC_ID_TYPE_BOTH also to the group array
This will help with having "sidHistory" support in future.
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/auth_util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 11b220eec6..2c26414b27 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -604,9 +604,11 @@ NTSTATUS create_local_token(TALLOC_CTX *mem_ctx, return NT_STATUS_NO_MEMORY; } - /* Start at index 1, where the groups start. */ + for (i=0; i<t->num_sids; i++) { - for (i=1; i<t->num_sids; i++) { + if (i == 0 && ids[i].type != WBC_ID_TYPE_BOTH) { + continue; + } if (ids[i].type != WBC_ID_TYPE_GID && ids[i].type != WBC_ID_TYPE_BOTH) { |