[Freeipa-devel] Time-based account policies

Alexander Bokovoy abokovoy at redhat.com
Wed Mar 11 09:28:15 UTC 2015


On Tue, 10 Mar 2015, John Dennis wrote:
>On 03/10/2015 12:56 PM, Alexander Bokovoy wrote:
>> See my answer to John. We don't need to end up with iCal at all since
>> iCal doesn't have procedural definitions of holidays. It has
>> EXDATE/RRULE allowing to express exceptions and repeating rules (EXRULE
>> for exception rules was removed in RFC5545 and is not used anymore) but
>> nothing more concrete.
>>
>> RFC5545 does define multiple things which are part of iCalendar format
>> and which we don't really need to deal with in SSSD so we don't need
>> full iCal at all. We need to be able to represent recurring events and
>> some of exceptions to them within the rules but that is a subset of what
>> is needed and can be implemented without involving a fully-compliant
>> iCal library.
>
>I always get a bit concerned when I hear we'll factor out or just import
>only the minimal code we need to support the minimal functionality we
>need from an otherwise large complex body of code implementing an entire
>RFC.
>
>Maybe the code in libical is perfectly suited to extracting the snippets
>we need (I don't know) but experience tells me complex code has complex
>inter-dependencies and reducing libical to our minimal requirements
>might be a significant effort. Is there really a problem with just
>linking with the entire libical library even if it's more than we need?
I'd leave that to Jakub to decide. Here is a typical sample of what we
would need from libical: parsing of recurrence rules:
https://github.com/libical/libical/blob/master/src/test/icalrecur_test.c
-- 
/ Alexander Bokovoy




More information about the Freeipa-devel mailing list