krb5: Do not fail to rd_req if no AD-KDC-ISSUED
We reject tickets that have no AD-KDC-ISSUED(!).
This was reported by Samba. The workaround they found was to set
check_pac = true in krb5.conf, as that clobbers the ret from
krb5_ticket_get_authorization_data_type() not having found an
AD-KDC-ISSUED element.
This was introduced in 1cede09a0b
.
This commit is contained in:
@@ -1037,11 +1037,10 @@ krb5_rd_req_ctx(krb5_context context,
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = krb5_ticket_get_authorization_data_type(context, o->ticket,
|
||||
KRB5_AUTHDATA_KDC_ISSUED,
|
||||
NULL);
|
||||
if (ret == 0)
|
||||
o->ticket->client->nameattrs->kdc_issued_verified = 1;
|
||||
if (krb5_ticket_get_authorization_data_type(context, o->ticket,
|
||||
KRB5_AUTHDATA_KDC_ISSUED,
|
||||
NULL) == 0)
|
||||
o->ticket->client->nameattrs->kdc_issued_verified = 1;
|
||||
|
||||
/* If there is a PAC, verify its server signature */
|
||||
if (inctx == NULL || inctx->check_pac) {
|
||||
|
Reference in New Issue
Block a user