summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/nsswitch/winbindd_pam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_pam.c b/source3/nsswitch/winbindd_pam.c
index becfc37c44..3e30d70522 100644
--- a/source3/nsswitch/winbindd_pam.c
+++ b/source3/nsswitch/winbindd_pam.c
@@ -466,7 +466,7 @@ static NTSTATUS winbindd_raw_kerberos_login(struct winbindd_domain *domain,
return NT_STATUS_NO_MEMORY;
}
- service = talloc_asprintf(state->mem_ctx, "krbtgt/%s@%s", realm, realm);
+ service = talloc_asprintf(state->mem_ctx, "%s/%s@%s", KRB5_TGS_NAME, realm, realm);
if (service == NULL) {
return NT_STATUS_NO_MEMORY;
}