mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:kdc: Add parameters for claims and device info to authn_policy_authenticate_to_service()
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
3ae7599830
commit
2f9d2ff895
@ -822,7 +822,10 @@ static NTSTATUS authsam_check_netlogon_trust(TALLOC_CTX *mem_ctx,
|
||||
lp_ctx,
|
||||
AUTHN_POLICY_AUTH_TYPE_NTLM,
|
||||
user_info_dc,
|
||||
NULL /* device_info */,
|
||||
(struct auth_claims) {},
|
||||
authn_server_policy,
|
||||
(struct authn_policy_flags) {},
|
||||
&server_audit_info);
|
||||
if (server_audit_info != NULL) {
|
||||
*server_audit_info_out = talloc_move(mem_ctx, &server_audit_info);
|
||||
|
@ -1177,7 +1177,10 @@ NTSTATUS authn_policy_authenticate_to_service(TALLOC_CTX *mem_ctx,
|
||||
struct loadparm_context* lp_ctx,
|
||||
const enum authn_policy_auth_type auth_type,
|
||||
const struct auth_user_info_dc *user_info,
|
||||
const struct auth_user_info_dc *device_info,
|
||||
const struct auth_claims auth_claims,
|
||||
const struct authn_server_policy *server_policy,
|
||||
const struct authn_policy_flags authn_policy_flags,
|
||||
struct authn_audit_info **server_audit_info_out)
|
||||
{
|
||||
NTSTATUS status = NT_STATUS_OK;
|
||||
@ -1210,12 +1213,12 @@ NTSTATUS authn_policy_authenticate_to_service(TALLOC_CTX *mem_ctx,
|
||||
samdb,
|
||||
lp_ctx,
|
||||
user_info,
|
||||
NULL /* device_info */,
|
||||
(struct auth_claims) {},
|
||||
device_info,
|
||||
auth_claims,
|
||||
&server_policy->policy,
|
||||
authn_int64_none() /* tgt_lifetime_raw */,
|
||||
event,
|
||||
(struct authn_policy_flags) {},
|
||||
authn_policy_flags,
|
||||
restrictions,
|
||||
server_audit_info_out);
|
||||
return status;
|
||||
|
@ -129,7 +129,10 @@ NTSTATUS authn_policy_authenticate_to_service(TALLOC_CTX *mem_ctx,
|
||||
struct loadparm_context* lp_ctx,
|
||||
enum authn_policy_auth_type auth_type,
|
||||
const struct auth_user_info_dc *user_info,
|
||||
const struct auth_user_info_dc *device_info,
|
||||
const struct auth_claims auth_claims,
|
||||
const struct authn_server_policy *server_policy,
|
||||
const struct authn_policy_flags authn_policy_flags,
|
||||
struct authn_audit_info **server_audit_info_out);
|
||||
|
||||
/* Create a structure containing auditing information. */
|
||||
|
@ -1671,7 +1671,10 @@ krb5_error_code samba_kdc_allowed_to_authenticate_to(TALLOC_CTX *mem_ctx,
|
||||
lp_ctx,
|
||||
AUTHN_POLICY_AUTH_TYPE_KERBEROS,
|
||||
client_info,
|
||||
NULL /* device_info */,
|
||||
(struct auth_claims) {},
|
||||
server_policy,
|
||||
(struct authn_policy_flags) {},
|
||||
server_audit_info_out);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
if (status_out != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user