summaryrefslogtreecommitdiff
path: root/nsswitch/pam_winbind.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-03-22 14:15:57 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-03-22 16:18:06 +0100
commit9624ca4f884444da3810c89c97942faef3360df4 (patch)
treeb98bf5676cef08583c5c58b33fea0f6f792a586a /nsswitch/pam_winbind.c
parent1f139ae2d162ebb045ce4eabb76a138baedfe44a (diff)
downloadsamba-9624ca4f884444da3810c89c97942faef3360df4.tar.gz
samba-9624ca4f884444da3810c89c97942faef3360df4.tar.bz2
samba-9624ca4f884444da3810c89c97942faef3360df4.zip
BUG 9735: Fix winbind seperator in upn to username conversion.
Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Mar 22 16:18:06 CET 2013 on sn-devel-104
Diffstat (limited to 'nsswitch/pam_winbind.c')
-rw-r--r--nsswitch/pam_winbind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 682af8ee88..9f855564bc 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -2430,7 +2430,7 @@ static char* winbind_upn_to_username(struct pwb_context *ctx,
return NULL;
}
- return talloc_asprintf(ctx, "%s\\%s", domain, name);
+ return talloc_asprintf(ctx, "%s%c%s", domain, sep, name);
}
static int _pam_delete_cred(pam_handle_t *pamh, int flags,