[SSSD] Re: Regarding sssd.conf syntax check, going thru dinglib

2017-03-29 Thread Lukas Slebodnik
On (29/03/17 19:13), amit kumar wrote:
>Hello,
>
>*Present **Behavior*:
># vim  /usr/local/etc/sssd/sssd.conf
>[sssd]
>services = nss, pam
>config_file_version = 2
>domains = LDAP
>
>[domain/LDAP]
>ldap_search_base = dc=example,dc=com
>id_provider = ldap
>*auth_provider = ldap9001**<== '**sssctl config_check' does not
 ^^
ATM it reports just an invalid option name
and "auth_provider" is valid.

Validating values need to be implemented.
I think we have ticket somewhere.

LS
___
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org


[SSSD] Re: Regarding sssd.conf syntax check, going thru dinglib

2017-03-30 Thread amit kumar
Hello Lukas,

Thanks for response, yes we have ticket
https://pagure.io/SSSD/sssd/issue/416

But my query was regarding the design *how we parse smb.conf using
ding-lib.*

I am planing to provide a fix so that 'sssctl config-check' reports
something as this incorrect.
debug_level = uu
I found anything on RHS of = inside smb.conf is not validated?
Do we use # cat /root/ding-libs-0.6.0/ini/ini.d/mysssd.conf for
validation of contents, if yes {How}.

Hope I am clear with my question.

Many Thanks in Advance
Amit

On 03/29/2017 10:12 PM, Lukas Slebodnik wrote:
> On (29/03/17 19:13), amit kumar wrote:
>> Hello,
>>
>> *Present **Behavior*:
>> # vim  /usr/local/etc/sssd/sssd.conf
>> [sssd]
>> services = nss, pam
>> config_file_version = 2
>> domains = LDAP
>>
>> [domain/LDAP]
>> ldap_search_base = dc=example,dc=com
>> id_provider = ldap
>> *auth_provider = ldap9001**<== '**sssctl config_check' does not
>  ^^
> ATM it reports just an invalid option name
> and "auth_provider" is valid.
>
> Validating values need to be implemented.
> I think we have ticket somewhere.
>
> LS
> ___
> sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
> To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org

-- 
Thanks
Amit Kumar
There are three ways to get something done:
  (1) Do it yourself.
  (2) Hire someone to do it for you.
  (3) Forbid your kids to do it.

___
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org


[SSSD] Re: Regarding sssd.conf syntax check, going thru dinglib

2017-03-31 Thread Lukas Slebodnik
On (30/03/17 22:00), amit kumar wrote:
>Hello Lukas,
>
>Thanks for response, yes we have ticket
>https://pagure.io/SSSD/sssd/issue/416
>
>But my query was regarding the design *how we parse smb.conf using
>ding-lib.*
>
Here is a desing page which describe ding-libs part.
https://fedorahosted.org/sssd/wiki/DesignDocs/libini-config-file-checks

I hope it is up to date. It also describe two ding-libs native validators
and their schemas in ini format.

There is also possible register another (external) validators.
But I think checking values would be usefull for everyone.

IIRC Michal Zidek (mzidek at redhat dot com) had some ideas
about schema for checking values.

LS

BTW the usage in sssd was quite trivial
https://pagure.io/SSSD/sssd/c/8b2a31634764168183506925a4b9f461afdba6f3
+ providing rules /usr/share/sssd/cfg_rules.ini
___
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org