Andrei Borzenkov wrote:
Отправлено с iPhone
23 февр. 2016 г., в 17:42, Olaf Hering <olaf@aepfle.de> написал(а):
On Tue, Feb 23, Howard Guo wrote:
- LDAP library will automatically load parameters from ldap.conf, but it will not complain if the file is missing or empty.
But there's an important decision to be made, and I would love to hear your opinion: should ldap.conf belong in libldap package at all?
If ldap works without a config file, why package /etc in the first place? Just look at the mess we created in /etc in the last 20 years. Whoever runs ldap will just create the file. Perhaps based on a template in %{defaultdocdir}.
I agree. Just place (well commented) example in documentation of libldap.
You cannot tell whether "ldap works without a config file". There are LDAP-enabled applications without own LDAP configuration and which rely on an existing ldap.conf (in openSUSE package at /etc/openldap/ldap.conf). It's much easier to explain people to tweak an existing config file with the right pathname than to let them look somewhere for a template. Ciao, Michael.