summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorBo Yang <boyang@samba.org>2009-08-08 06:10:37 +0800
committerBo Yang <boyang@samba.org>2009-08-08 06:26:43 +0800
commitb9fb8da59148f574b03e44748fca7800f940db7a (patch)
treea2bfd5cbef15e3a1289c2fbc594ca7822a62de5b /source3/winbindd
parent4aad79041b2ababc3336db3bea90f115c5634427 (diff)
downloadsamba-b9fb8da59148f574b03e44748fca7800f940db7a.tar.gz
samba-b9fb8da59148f574b03e44748fca7800f940db7a.tar.bz2
samba-b9fb8da59148f574b03e44748fca7800f940db7a.zip
s3: Fix nss info substitution
Signed-off-by: Bo Yang <boyang@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/wb_getpwsid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/winbindd/wb_getpwsid.c b/source3/winbindd/wb_getpwsid.c
index a823ba3953..fc696cb9a1 100644
--- a/source3/winbindd/wb_getpwsid.c
+++ b/source3/winbindd/wb_getpwsid.c
@@ -191,7 +191,7 @@ static void wb_getpwsid_sid2gid_done(struct tevent_req *subreq)
fstrcpy(state->pw->pw_passwd, "*");
fstrcpy(state->pw->pw_gecos, state->userinfo->full_name);
- if (!fillup_pw_field(lp_template_homedir(), state->pw->pw_name,
+ if (!fillup_pw_field(lp_template_homedir(), username,
state->user_domain->name, state->pw->pw_uid,
state->pw->pw_gid, state->userinfo->homedir,
state->pw->pw_dir)) {
@@ -200,9 +200,9 @@ static void wb_getpwsid_sid2gid_done(struct tevent_req *subreq)
return;
}
- if (!fillup_pw_field(lp_template_homedir(), state->pw->pw_name,
+ if (!fillup_pw_field(lp_template_shell(), state->pw->pw_name,
state->user_domain->name, state->pw->pw_uid,
- state->pw->pw_gid, state->userinfo->homedir,
+ state->pw->pw_gid, state->userinfo->shell,
state->pw->pw_shell)) {
DEBUG(5, ("Could not compose shell\n"));
tevent_req_nterror(req, NT_STATUS_NO_MEMORY);