17f08cbd0f909181536b93d6c12c7cd69995f09e |
|
02-Mar-2014 |
Sumit Bose <sbose@redhat.com> |
config API: read only specific files from schemaplugindir
Currently the config API read any file in the schema plugin dir,
typically /usr/share/sssd/sssd.api.d. If there are any unexpected files,
like e.g. editor copies or backups, the python code might break because
it cannot parse the files.
With this patch only files matching the pattern '^sssd-.*\.conf$' are
read from this directory.
Additionally this patch contains a file which will break the config API
self test if it is not filtered out correctly.
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com> |