ipa-kdb: Fix ACL evaluator

Fixes: https://fedorahosted.org/freeipa/ticket/2343
This commit is contained in:
Simo Sorce
2012-02-17 18:19:01 -05:00
committed by Martin Kosek
parent dc5592af1d
commit 8ec98dfcae

View File

@@ -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;