1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

s3: Fix nss info substitution

Signed-off-by: Bo Yang <boyang@samba.org>
This commit is contained in:
Bo Yang 2009-08-08 06:10:37 +08:00
parent 4aad79041b
commit b9fb8da591

View File

@ -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);