bodgit / puppet-sssd

Puppet Module for managing SSSD
https://forge.puppet.com/bodgit/sssd
Apache License 2.0
2 stars 9 forks source link

Search base validation #2

Closed bodgit closed 8 years ago

bodgit commented 8 years ago

Based on #1 we can validate DN's. However the search bases as specified in sssd.conf have additional parameters and also multiple search bases like search_base[?scope?[filter][?search_base?scope?[filter]]*].

It should be possible to create an SSSD-specific validation function that uses the bodgitlib-provided validate_ldap_dn and validate_ldap_filter functions and then it just needs to validate the scope values itself and that the whole string conforms to the right format.