Bug 2192 - %G / %g substitution variables do not work in Samba/Winbind
Summary: %G / %g substitution variables do not work in Samba/Winbind
Status: RESOLVED DUPLICATE of bug 2191
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: winbind (show other bugs)
Version: 3.0.10
Hardware: All All
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-26 23:23 UTC by takeuchi
Modified: 2004-12-27 01:52 UTC (History)
0 users

See Also:


Attachments

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 
name.
  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  
....  
miracle2:x:10006:40003:miracle2:/home/dev/miracle2:/bin/bash
....  
  
Here is what I actually get:  
miracle2:x:10006:40003:miracle2:/home/40003/miracle2:/bin/bash


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 ***