kdc: Add global disable_pac config param
This commit is contained in:

committed by
Nico Williams

parent
66445f4341
commit
2a38fa17b5
@ -101,6 +101,7 @@ krb5_kdc_get_config(krb5_context context, krb5_kdc_configuration **config)
|
|||||||
c->strict_nametypes = FALSE;
|
c->strict_nametypes = FALSE;
|
||||||
c->trpolicy = TRPOLICY_ALWAYS_CHECK;
|
c->trpolicy = TRPOLICY_ALWAYS_CHECK;
|
||||||
c->require_pac = FALSE;
|
c->require_pac = FALSE;
|
||||||
|
c->disable_pac = FALSE;
|
||||||
c->enable_fast = TRUE;
|
c->enable_fast = TRUE;
|
||||||
c->enable_armored_pa_enc_timestamp = TRUE;
|
c->enable_armored_pa_enc_timestamp = TRUE;
|
||||||
c->enable_unarmored_pa_enc_timestamp = TRUE;
|
c->enable_unarmored_pa_enc_timestamp = TRUE;
|
||||||
@ -263,6 +264,14 @@ krb5_kdc_get_config(krb5_context context, krb5_kdc_configuration **config)
|
|||||||
"require_pac",
|
"require_pac",
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
c->disable_pac =
|
||||||
|
krb5_config_get_bool_default(context,
|
||||||
|
NULL,
|
||||||
|
c->disable_pac,
|
||||||
|
"kdc",
|
||||||
|
"disable_pac",
|
||||||
|
NULL);
|
||||||
|
|
||||||
c->enable_fast =
|
c->enable_fast =
|
||||||
krb5_config_get_bool_default(context,
|
krb5_config_get_bool_default(context,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -100,6 +100,7 @@ struct krb5_kdc_configuration {
|
|||||||
enum krb5_kdc_trpolicy trpolicy;
|
enum krb5_kdc_trpolicy trpolicy;
|
||||||
|
|
||||||
unsigned int require_pac : 1;
|
unsigned int require_pac : 1;
|
||||||
|
unsigned int disable_pac : 1;
|
||||||
unsigned int enable_fast : 1;
|
unsigned int enable_fast : 1;
|
||||||
unsigned int enable_armored_pa_enc_timestamp : 1;
|
unsigned int enable_armored_pa_enc_timestamp : 1;
|
||||||
unsigned int enable_unarmored_pa_enc_timestamp : 1;
|
unsigned int enable_unarmored_pa_enc_timestamp : 1;
|
||||||
|
@ -348,6 +348,10 @@ _kdc_include_pac_p(astgs_request_t r)
|
|||||||
}
|
}
|
||||||
if (r->server->flags.no_auth_data_reqd)
|
if (r->server->flags.no_auth_data_reqd)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
if (r->server->flags.auth_data_reqd)
|
||||||
|
return TRUE;
|
||||||
|
if (r->config->disable_pac)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
return !!(r->pac_attributes & (KRB5_PAC_WAS_REQUESTED | KRB5_PAC_WAS_GIVEN_IMPLICITLY));
|
return !!(r->pac_attributes & (KRB5_PAC_WAS_REQUESTED | KRB5_PAC_WAS_GIVEN_IMPLICITLY));
|
||||||
}
|
}
|
||||||
|
@ -828,6 +828,11 @@ addresses in the tickets.
|
|||||||
.It Li allow-null-ticket-addresses = Va BOOL
|
.It Li allow-null-ticket-addresses = Va BOOL
|
||||||
Allow address-less tickets.
|
Allow address-less tickets.
|
||||||
.\" XXX
|
.\" XXX
|
||||||
|
.It Li disable_pac = Va BOOL
|
||||||
|
Do not include a PAC in service tickets.
|
||||||
|
However, if a service has the
|
||||||
|
.Li auth-data-reqd
|
||||||
|
attribute then the KDC will include a PAC anyways.
|
||||||
.It Li enable_fast = Va BOOL
|
.It Li enable_fast = Va BOOL
|
||||||
Enable RFC 6113 FAST support, this is enabled by default.
|
Enable RFC 6113 FAST support, this is enabled by default.
|
||||||
.It Li enable_armored_pa_enc_timestamp = Va BOOL
|
.It Li enable_armored_pa_enc_timestamp = Va BOOL
|
||||||
|
Reference in New Issue
Block a user