On Thu, Feb 18, 2016 at 07:00:53PM +0100, Michal Židek wrote:
> Hi!
> 
> This is the WIP design stub for config file checks:
> https://fedorahosted.org/sssd/wiki/DesignDocs/libini-config-file-checks
> 
> For the first version we just want to
> have the typo detection mechanism. To be more
> precise, we want to detect:
> 1. options with wrong names
> 2. options in wrong sections
> 
> For the more complicated checks in later
> version I would like to add possibility
> to define constraints for the config file.
> 
> The idea is also described in the design stub.
> 
> For the definitions of constraints, we can use INI format
> as well and not the custom format that I use now.
> However the custom format is quite simple and
> looks better IMO and allows to parse different
> attributes in different way which results in less
> verbose and better formatted file. However as I said it
> is not required to get the functionality.

Well, using the INI format would have the advantage of having the parser
ready already. It feels a bit backwards to me to configure the INI
parser with another file format.

What about having the allowed options per section, like this?

[allowed_options]
section = domain
apply_if_exists = id_provider; ad
apply_if_exists = ldap_id_mapping; false
apply_contraint = all
option = value
option = value
option = value

> 
> The abilities of the rules can be further
> extended by adding new attributes with special
> meaning (see the design).
> 
> Lukas could you also describe the idea you told
> me with the hooks in C? It sounded like a
> good idea but I do not remember all the
> details.
> 
> Michal
> _______________________________________________
> sssd-devel mailing list
> sssd-devel@lists.fedorahosted.org
> https://lists.fedorahosted.org/admin/lists/sssd-devel@lists.fedorahosted.org
_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/sssd-devel@lists.fedorahosted.org

Reply via email to