mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-kdb: Fix ACL evaluator
Fixes: https://fedorahosted.org/freeipa/ticket/2343
This commit is contained in:
@@ -95,7 +95,7 @@ static krb5_error_code ipadb_match_acl(krb5_context kcontext,
|
||||
krb5_const_principal target)
|
||||
{
|
||||
struct ipadb_context *ipactx;
|
||||
krb5_error_code kerr = ENOENT;
|
||||
krb5_error_code kerr;
|
||||
LDAPMessage *lentry;
|
||||
LDAPDerefRes *deref_results;
|
||||
LDAPDerefRes *dres;
|
||||
@@ -126,6 +126,9 @@ static krb5_error_code ipadb_match_acl(krb5_context kcontext,
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* the default is that we fail */
|
||||
kerr = ENOENT;
|
||||
|
||||
while (lentry) {
|
||||
/* both client and target must be found in the same ACI */
|
||||
client_missing = true;
|
||||
|
||||
Reference in New Issue
Block a user