mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
ipa-kdb: Change mspac base RID logic from OR to AND
The purpose is to set a default if the RID doesn't match expectations. Discovered by coverity Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Robbie Harwood <rharwood@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
cbf7bcbed5
commit
0096f4b985
@ -906,7 +906,7 @@ static krb5_error_code ipadb_get_pac(krb5_context kcontext,
|
||||
}
|
||||
|
||||
/* IPA user principals are all constructed */
|
||||
if ((pac_info.logon_info.info->info3.base.rid != 515) ||
|
||||
if ((pac_info.logon_info.info->info3.base.rid != 515) &&
|
||||
(pac_info.logon_info.info->info3.base.rid != 516)) {
|
||||
pac_upn.upn_dns_info.flags |= PAC_UPN_DNS_FLAG_CONSTRUCTED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user