summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-09-21 01:20:32 +0200
committerMichael Adam <obnox@samba.org>2008-09-23 10:00:26 +0200
commit1f8a7739ace7715b20c9b8c72732ab1ff689b552 (patch)
tree844c00d4d8ce6c377bfdda4284d051ec58753c1d /source3
parent1b9c2ccb1f1ba4d67ee0d82f4ff89b0abd62cbe2 (diff)
downloadsamba-1f8a7739ace7715b20c9b8c72732ab1ff689b552.tar.gz
samba-1f8a7739ace7715b20c9b8c72732ab1ff689b552.tar.bz2
samba-1f8a7739ace7715b20c9b8c72732ab1ff689b552.zip
[s3]winbindd_rpc: add domain prefix to username in lookup_groupmem().
This makes the output of "getent group" of a domain group show the domain prefix with "security = domain". Michael
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_rpc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c
index df80ad8029..9fbea8e45b 100644
--- a/source3/winbindd/winbindd_rpc.c
+++ b/source3/winbindd/winbindd_rpc.c
@@ -854,7 +854,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];
}