mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
s4-kdc/db_glue: workaround different CLIENT_NAME_MISMATCH error codes.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
e6e2ec0001
commit
9a0263a7c3
@ -1969,7 +1969,11 @@ samba_kdc_check_pkinit_ms_upn_match(krb5_context context,
|
||||
* comparison */
|
||||
if (!(orig_sid && target_sid && dom_sid_equal(orig_sid, target_sid))) {
|
||||
talloc_free(mem_ctx);
|
||||
#ifdef KRB5_KDC_ERR_CLIENT_NAME_MISMATCH /* Heimdal */
|
||||
return KRB5_KDC_ERR_CLIENT_NAME_MISMATCH;
|
||||
#elif defined(KRB5KDC_ERR_CLIENT_NAME_MISMATCH) /* MIT */
|
||||
return KRB5KDC_ERR_CLIENT_NAME_MISMATCH;
|
||||
#endif
|
||||
}
|
||||
|
||||
talloc_free(mem_ctx);
|
||||
|
Loading…
x
Reference in New Issue
Block a user