[Freeipa-devel] [PATCH] Fixed permission lookup

Jan Zelený jzeleny at redhat.com
Thu Jan 27 14:41:34 UTC 2011


Rob Crittenden <rcritten at redhat.com> wrote:
> Jan Zelený wrote:
> > Martin Kosek<mkosek at redhat.com>  wrote:
> >> On Thu, 2011-01-27 at 11:15 +0100, Jan Zelený wrote:
> >>> Lookup based on --filter wasn't implemented at all. It did't show until
> >>> now, because of bug sitting on top of it which was resulting in
> >>> internal error. This patch fixes the bug and adds the filtering
> >>> functionality.
> >>> 
> >>> https://fedorahosted.org/freeipa/ticket/818
> >> 
> >> NACK
> >> 
> >> Did you build this patch on current master? Because in your patch, you
> >> removed changes in permission-find from my previous patch "017 ACI
> >> plugin supports prefixes". After your patch, permission-find fails:
> >> 
> >> $ ipa permission-find
> >> ipa: ERROR: 'aciprefix' is required
> >> 
> >> Martin
> > 
> > Sorry, I accidentaly mixed the code with a part of the older one. Sending
> > corrected patch.
> > 
> > Jan
> 
> I think the more stuff in baseldap.py:LDAPSearch() was there because
> adding entries in a post_callback wasn't working. It only let you reduce
> the number or modify what was already there IIRC.

>From what I know, lists should allow you to expand them without any problems 
(not sure how is the concept called in Python, Pavel told me about it). Also I 
didn't encounter any problems with this approach (and the post callback 
actually adds some entries), that's why I changed it the way I did.

Jan




More information about the Freeipa-devel mailing list