Ticket 48027 - revise the rootdn plugin configuration validation
Bug Description: There are several issues with the config validation. The use of
strcspn() was not working as expected for all the config attributes.
Needed to use strspn instead(). Also, for many errors we simply
ignored the new value, and logged an error. There was also a
memory leak between plugin restarts
Fix Description: Created new function to check all the characters in a config value.
The plugin now returns an error when an invalid config setting is
encountered. Fixed the memory leak when restarting the plugin.
https://fedorahosted.org/389/ticket/48027
Valgrind: passed
Reviewed by: rmeggins(Thanks!)
(cherry picked from commit 53e34440a3c4cced2372e810c14e1743fa4c716c)
Conflicts:
ldap/servers/plugins/rootdn_access/rootdn_access.c