Bug 4421 - no substitution for template in nss_info_template.c
Summary: no substitution for template in nss_info_template.c
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: winbind (show other bugs)
Version: 3.0.24
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: Gerald (Jerry) Carter (dead mail address)
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-01 02:36 UTC by Frediano Ziglio
Modified: 2007-03-01 07:02 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 Frediano Ziglio 2007-03-01 02:36:39 UTC
current SVN branch SAMBA_3_0_25 using default nss_info module (nss_info_template.c) do not substitute templates.

From core

        *homedir = talloc_strdup( ctx, lp_template_homedir() );
        *shell   = talloc_strdup( ctx, lp_template_shell() );

(you can see there is no substitution)

using 

   template homedir = /home/winnt/%U
   template shell = /bin/bash

in smb.conf this command (pam configured with winbind)

getent passwd user 

reply something like

user:*:16820364:16777217:comment:/home/winnt/%U:/bin/bash

I already reported the problem on mailing list but I think is fine to have a bug report too. As a workaround I added 

  winbind nss info = ad

Regards
  Frediano Ziglio
Comment 1 Gerald (Jerry) Carter (dead mail address) 2007-03-01 05:36:59 UTC
I just fixed this within the past 24 hours.  Are you sure this is
not working in 3.0.25pre1 ?
Comment 2 Frediano Ziglio 2007-03-01 06:59:56 UTC
(In reply to comment #1)
> I just fixed this within the past 24 hours.  Are you sure this is
> not working in 3.0.25pre1 ?

I just recompile and tested. It's working. I was convinced that fix would be in nss_info_template.c so I didn't notice it.

thanks
  Frediano
Comment 3 Gerald (Jerry) Carter (dead mail address) 2007-03-01 07:02:14 UTC
Thanks for the update.  Closing.