summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-07-29 13:47:27 -0700
committerJeremy Allison <jra@samba.org>2010-07-29 13:54:22 -0700
commitb7f029016a6a3fb98652c65f27ae80ad78048396 (patch)
tree849819fa029762cfbb02e1ff511e731fca37e4d8
parenta8cd3ef99eb70d70b9272b6e3ab5cc737195e06c (diff)
downloadsamba-b7f029016a6a3fb98652c65f27ae80ad78048396.tar.gz
samba-b7f029016a6a3fb98652c65f27ae80ad78048396.tar.bz2
samba-b7f029016a6a3fb98652c65f27ae80ad78048396.zip
We should be using the winbindd separator in this case, not hardcoding a \\ value.
Jeremy.
-rw-r--r--source3/winbindd/winbindd_pam.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index bf113e8cce..010245f05d 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -1469,7 +1469,9 @@ enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain,
parse_domain_user(mapped_user, name_domain, name_user);
if ( mapped_user != state->request->data.auth.user ) {
- fstr_sprintf( domain_user, "%s\\%s", name_domain, name_user );
+ fstr_sprintf( domain_user, "%s%c%s", name_domain,
+ *lp_winbind_separator(),
+ name_user );
safe_strcpy( state->request->data.auth.user, domain_user,
sizeof(state->request->data.auth.user)-1 );
}