-
Notifications
You must be signed in to change notification settings - Fork 270
pac: fix issue with pac_check=no_check #8318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIUC, this condition will be met for IPA with default value of Does IPA add
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi, yes, IPA adds to bye,
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"... and IPA"?