diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c index 682af8ee880..9f855564bcc 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,