Skip to content

Commit

Permalink
Handle picky windows RODC servers
Browse files Browse the repository at this point in the history
  • Loading branch information
Love Hornquist Astrand committed Oct 2, 2010
1 parent d5e4619 commit 6beb058
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/krb5/init_creds_pw.c
Expand Up @@ -1418,6 +1418,17 @@ krb5_init_creds_set_service(krb5_context context,
if (ret)
return ret;
}

/*
* This is for Windows RODC that are picky about what name type
* the server principal have, and the really strange part is that
* they are picky about the AS-REQ name type and not the TGS-REQ
* later. Oh well.
*/

if (krb5_principal_is_krbtgt(context, principal))
krb5_principal_set_type(context, principal, KRB5_NT_SRV_INST);

krb5_free_principal(context, ctx->cred.server);
ctx->cred.server = principal;

Expand Down

0 comments on commit 6beb058

Please sign in to comment.