summaryrefslogtreecommitdiffstats
path: root/source4/winbind
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-03-28 16:32:06 +1300
committerAndrew Bartlett <abartlet@samba.org>2014-06-04 03:22:26 +0200
commit57228317fc2339b83cccf4b1f3515d8a3b435a3c (patch)
tree59ae7159bce3473cd194e4abc2574e104ee2036c /source4/winbind
parent67a9d2183ec0f9177a66100ed4fc251979e39bc9 (diff)
downloadsamba-57228317fc2339b83cccf4b1f3515d8a3b435a3c.tar.gz
samba-57228317fc2339b83cccf4b1f3515d8a3b435a3c.tar.xz
samba-57228317fc2339b83cccf4b1f3515d8a3b435a3c.zip
winbind: Fix template homedir to match source3
Fix provided by Andy Igoshin <ai@vsu.ru> BUG: https://bugzilla.samba.org/show_bug.cgi?id=10324 Andrew Bartlett Change-Id: Ie94d207fed91e9dfd85ee3c3339c376b25ac5fa4 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/winbind')
-rw-r--r--source4/winbind/wb_cmd_getpwnam.c4
-rw-r--r--source4/winbind/wb_cmd_getpwuid.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/winbind/wb_cmd_getpwnam.c b/source4/winbind/wb_cmd_getpwnam.c
index 0101d8ca23..c4f3db8df6 100644
--- a/source4/winbind/wb_cmd_getpwnam.c
+++ b/source4/winbind/wb_cmd_getpwnam.c
@@ -133,9 +133,9 @@ static void cmd_getpwnam_recv_user_info(struct composite_context *ctx)
WBSRV_SAMBA3_SET_STRING(pw->pw_gecos, user_info->out.full_name);
WBSRV_SAMBA3_SET_STRING(pw->pw_dir,
lpcfg_template_homedir(state->service->task->lp_ctx));
- all_string_sub(pw->pw_dir, "%WORKGROUP%", state->workgroup_name,
+ all_string_sub(pw->pw_dir, "%D", state->workgroup_name,
sizeof(fstring) - 1);
- all_string_sub(pw->pw_dir, "%ACCOUNTNAME%", user_info->out.account_name,
+ all_string_sub(pw->pw_dir, "%U", user_info->out.account_name,
sizeof(fstring) - 1);
WBSRV_SAMBA3_SET_STRING(pw->pw_shell,
lpcfg_template_shell(state->service->task->lp_ctx));
diff --git a/source4/winbind/wb_cmd_getpwuid.c b/source4/winbind/wb_cmd_getpwuid.c
index 73bbb59bc3..997776760c 100644
--- a/source4/winbind/wb_cmd_getpwuid.c
+++ b/source4/winbind/wb_cmd_getpwuid.c
@@ -153,9 +153,9 @@ static void cmd_getpwuid_recv_user_info(struct composite_context *ctx)
WBSRV_SAMBA3_SET_STRING(pw->pw_gecos, user_info->out.full_name);
WBSRV_SAMBA3_SET_STRING(pw->pw_dir,
lpcfg_template_homedir(state->service->task->lp_ctx));
- all_string_sub(pw->pw_dir, "%WORKGROUP%", state->workgroup,
+ all_string_sub(pw->pw_dir, "%D", state->workgroup,
sizeof(fstring) - 1);
- all_string_sub(pw->pw_dir, "%ACCOUNTNAME%", user_info->out.account_name,
+ all_string_sub(pw->pw_dir, "%U", user_info->out.account_name,
sizeof(fstring) - 1);
WBSRV_SAMBA3_SET_STRING(pw->pw_shell,
lpcfg_template_shell(state->service->task->lp_ctx));