git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ad23ec
)
winbindd_rpc: add domain prefix to username in lookup_groupmem().
author
Michael Adam
<obnox@samba.org>
Sat, 20 Sep 2008 23:20:32 +0000
(
01:20
+0200)
committer
Michael Adam
<obnox@samba.org>
Fri, 21 Nov 2008 23:30:58 +0000
(
00:30
+0100)
This makes the output of "getent group" of a domain group show the
domain prefix with "security = domain".
Michael
source/winbindd/winbindd_rpc.c
patch
|
blob
|
history
diff --git
a/source/winbindd/winbindd_rpc.c
b/source/winbindd/winbindd_rpc.c
index c231d1476bd4094fec597b81fcc817fe9463fc42..b03e035900e7085e8007ad5b1626857969605311 100644
(file)
--- a/
source/winbindd/winbindd_rpc.c
+++ b/
source/winbindd/winbindd_rpc.c
@@
-821,7
+821,10
@@
static NTSTATUS lookup_groupmem(struct winbindd_domain *domain,
}
for (r=0; r<tmp_names.count; r++) {
- (*names)[i+r] = CONST_DISCARD(char *, tmp_names.names[r].string);
+ (*names)[i+r] = fill_domain_username_talloc(mem_ctx,
+ domain->name,
+ tmp_names.names[r].string,
+ true);
(*name_types)[i+r] = tmp_types.ids[r];
}