diff options
author | Michael Adam <obnox@samba.org> | 2008-09-21 01:20:32 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-09-23 10:00:26 +0200 |
commit | 1f8a7739ace7715b20c9b8c72732ab1ff689b552 (patch) | |
tree | 844c00d4d8ce6c377bfdda4284d051ec58753c1d /source3/winbindd | |
parent | 1b9c2ccb1f1ba4d67ee0d82f4ff89b0abd62cbe2 (diff) | |
download | samba-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/winbindd')
-rw-r--r-- | source3/winbindd/winbindd_rpc.c | 5 |
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]; } |