add check-rd-req-server

This commit is contained in:
Love Hornquist Astrand
2010-09-01 21:56:17 -07:00
parent 856c1c0a86
commit d893207413
4 changed files with 16 additions and 2 deletions

View File

@@ -926,7 +926,7 @@ krb5_rd_req_ctx(krb5_context context,
&o->keyblock);
if (ret) {
/* If caller specified a server, fail. */
if (service == NULL)
if (service == NULL && (context->flags & KRB5_CTX_F_RD_REQ_IGNORE) == 0)
goto out;
/* Otherwise, fall back to iterating over the keytab. This
* have serious performace issues for larger keytab.