mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:kdc: Adapt wamba_wdc_check_client_access() to modern Heimdal
Modern Heimdal falls back to kdc_check_flags() internally when KRB5_PLUGIN_NO_HANDLE is returned, avoiding the need to call back into the internal KDC APIs. Selected from patch by by Stefan Metzmacher <metze@samba.org> from his Heimdal upgrade branch. NOTE: THIS COMMIT WON'T COMPILE/WORK ON ITS OWN! Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
78937243dc
commit
3057e14097
@ -887,10 +887,7 @@ static krb5_error_code samba_wdc_check_client_access(void *priv,
|
||||
}
|
||||
|
||||
/* Now do the standard Heimdal check */
|
||||
return kdc_check_flags(context, config,
|
||||
client_ex, client_name,
|
||||
server_ex, server_name,
|
||||
req->msg_type == krb_as_req);
|
||||
return KRB5_PLUGIN_NO_HANDLE;
|
||||
}
|
||||
|
||||
static krb5_error_code samba_wdc_plugin_init(krb5_context context, void **ptr)
|
||||
|
Loading…
Reference in New Issue
Block a user