git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8cd3ef
)
We should be using the winbindd separator in this case, not hardcoding a \\ value.
author
Jeremy Allison
<jra@samba.org>
Thu, 29 Jul 2010 20:47:27 +0000
(13:47 -0700)
committer
Jeremy Allison
<jra@samba.org>
Thu, 29 Jul 2010 20:54:22 +0000
(13:54 -0700)
Jeremy.
source3/winbindd/winbindd_pam.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_pam.c
b/source3/winbindd/winbindd_pam.c
index bf113e8cce933305507208ba9efbd0902feaff17..010245f05d6bd45b1fa40209604504bf6375a16c 100644
(file)
--- 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 );
}