kdc: Check authdata in ticket rather than in request body

This matches Windows behaviour and the RFC6113 specification.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
Joseph Sutton
2021-11-16 20:01:16 +13:00
committed by Luke Howard
parent 313caed18a
commit 0ea840ebfc

View File

@@ -1199,11 +1199,11 @@ next_kvno:
ret = KRB5KRB_AP_ERR_BAD_INTEGRITY; /* ? */ ret = KRB5KRB_AP_ERR_BAD_INTEGRITY; /* ? */
goto out; goto out;
} }
}
ret = validate_fast_ad(r, *auth_data); ret = validate_fast_ad(r, (*ticket)->ticket.authorization_data);
if (ret) if (ret)
goto out; goto out;
}
/* /*