Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/man/sssd.conf.5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2262,6 +2262,12 @@ pam_json_services = gdm-switchable-auth
IPA and AD provider. If krb5_validate is set to
'False' the PAC checks will be skipped.
</para>
<para>
Please note that the checks listed below only apply
to PACs issued by Active Directory. PACs issued
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"... and IPA"?

e.g. by a plain MIT Kerberos KDC will not contain
the needed PAC data buffers to run the checks.
</para>
<para>
The following options can be used alone or in a
comma-separated list:
Expand Down
19 changes: 12 additions & 7 deletions src/providers/ad/ad_pac_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,13 +394,18 @@ errno_t ad_get_data_from_pac(TALLOC_CTX *mem_ctx, const uint32_t pac_check_opts,
}
}

/* The logon_info buffer is the main PAC buffer with the basic user
* information, if this is missing we consider the PAC as broken. */
if (_logon_info != NULL && *_logon_info == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE,
"LOGON_INFO pac buffer missing.\n");
ret = ERR_CHECK_PAC_FAILED;
goto done;
/* The logon_info buffer is the main PAC buffer for AD users with the
* basic user information, if this is missing we consider the PAC as
* broken if PAC checking is not switched off. This is important because
* new versions MIT Kerberos will add a PAC buffer as well, but without
* an AD logon_info buffer. */
if (pac_check_opts != 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC, this condition will be met for IPA with default value of pac_check.

Does IPA add logon_info?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

yes, IPA adds to logon_info buffer.

bye,
Sumit

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both man page and comment update mention only AD, thus a bit misleading.

if (_logon_info != NULL && *_logon_info == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE,
"LOGON_INFO pac buffer missing.\n");
ret = ERR_CHECK_PAC_FAILED;
goto done;
}
}

/* The upn_dns_info buffer was added with Windows 2008, so there might be
Expand Down