Bug 2192 - %G / %g substitution variables do not work in Samba/Winbind
%G / %g substitution variables do not work in Samba/Winbind
Status: RESOLVED DUPLICATE of bug 2191
Product: Samba 3.0
Classification: Unclassified
Component: winbind
All All
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2004-12-26 23:23 UTC by takeuchi
Modified: 2004-12-27 01:52 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description takeuchi 2004-12-26 23:23:29 UTC
According to a report of bug id 1676,

Althogh commands below are written in smb.conf, "%G" never changes into a group 
  security = ADS 
  template homedir = /home/%G/%U 
  template shaell = /bin/bash
  winbind use default domain = yes

For exemple:
With this directive, when using "getent", we should get:  
$ getent passwd  
Here is what I actually get:  

With investigating file "source/lib/substitute.c", I founded that the return 
value of "gidtoname" function is not a group name, but is still gid.
Comment 1 takeuchi 2004-12-27 01:52:51 UTC

*** This bug has been marked as a duplicate of 2191 ***