git.samba.org
/
tridge
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9068a30
)
s3:auth_util: add the uid with WBC_ID_TYPE_BOTH also to the group array
author
Stefan Metzmacher
<metze@samba.org>
Wed, 12 Oct 2011 18:52:09 +0000
(20:52 +0200)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 18 Oct 2011 02:13:33 +0000
(13:13 +1100)
This will help with having "sidHistory" support in future.
metze
source3/auth/auth_util.c
patch
|
blob
|
history
diff --git
a/source3/auth/auth_util.c
b/source3/auth/auth_util.c
index 11b220eec6b9035d17b7f686283a522bbb6ac0d7..2c26414b27825f5269badfce0fdc15849c3a5c87 100644
(file)
--- 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) {