winbindd_rpc: add domain prefix to username in lookup_groupmem().
authorMichael Adam <obnox@samba.org>
Sat, 20 Sep 2008 23:20:32 +0000 (01:20 +0200)
committerMichael 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

index c231d1476bd4094fec597b81fcc817fe9463fc42..b03e035900e7085e8007ad5b1626857969605311 100644 (file)
@@ -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];
                }