From f81e922cdd65646d1f52c1e1b35f4d4c6eaca988 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 22 Mar 2013 14:15:57 +0100 Subject: [PATCH] BUG 9735: Fix winbind seperator in upn to username conversion. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Günther Deschner Signed-off-by: Andreas Schneider --- nsswitch/pam_winbind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c index 29d6f7c7bc3..1cc6b83efbe 100644 --- a/nsswitch/pam_winbind.c +++ b/nsswitch/pam_winbind.c @@ -2449,7 +2449,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, -- 2.11.4.GIT