[Freeipa-devel] [PATCH] 0478 ipalib.plugins: Expose LDAPObjects' eligibility for permission --type in JSON metadata

Petr Viktorin pviktori at redhat.com
Thu Feb 27 11:55:26 UTC 2014


On 02/27/2014 12:52 PM, Alexander Bokovoy wrote:
> On Thu, 27 Feb 2014, Petr Viktorin wrote:
>> Hello,
>> This patch exposes object metadata needed for permission WebUI.
>>
>> https://fedorahosted.org/freeipa/ticket/4201
>>
>> --
>> Petr³
>
>> From cbebd3328715db4ddd4afe9bdbd6c6edf0bf7148 Mon Sep 17 00:00:00 2001
>> From: Petr Viktorin <pviktori at redhat.com>
>> Date: Wed, 26 Feb 2014 16:39:49 +0100
>> Subject: [PATCH] ipalib.plugins: Expose LDAPObjects' eligibility for
>> permission --type in JSON metadata
>>
>> https://fedorahosted.org/freeipa/ticket/4201
>> ---
>> ipalib/plugins/baseldap.py | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py
>> index
>> c2aad784df2b2bcd03f4ec0462e74cd6abce594c..c4951eb56c044cfa08b617d546d9b9332adc4cc9
>> 100644
>> --- a/ipalib/plugins/baseldap.py
>> +++ b/ipalib/plugins/baseldap.py
>> @@ -631,6 +631,8 @@ def __json__(self):
>>         json_dict['aciattrs'] = attrlist
>>         attrlist.sort()
>>         json_dict['methods'] = [m for m in self.methods]
>> +        json_dict['can_have_permissions'] = bool(
>> +            self.permission_filter_objectclasses)
>>         return json_dict
> ACK.
>
>

Pushed to master: 4fda432050e9b12ec9d48c2c80b9fd69faa54480


-- 
Petr³




More information about the Freeipa-devel mailing list