I'm using ldap with freeradius and it fails to start automatically: * Starting OpenNTPD ... [ ok ] * Starting postfix ... [ ok ] * /run/radiusd: correcting mode * Starting radiusd ... * start-stop-daemon: failed to start `/usr/sbin/radiusd' * Failed to start radiusd [ !! ] * ERROR: radiusd failed to start config file testing succeeded * Starting ldap-server ... [ ok ] * samba -> start: smbd ... [ ok ] Can we please adjust the init script that it starts after openldap? Thanks
From the error log: Wed Apr 29 07:58:05 2020 : Info: Debugger not attached Wed Apr 29 07:58:05 2020 : Info: rlm_ldap: libldap vendor: OpenLDAP, version: 20448 Wed Apr 29 07:58:05 2020 : Error: rlm_ldap (ldap): Bind with uid=... to ldap://localhost:389 failed: Can't contact LDAP server Wed Apr 29 07:58:05 2020 : Error: rlm_ldap (ldap): Opening connection failed (0) Wed Apr 29 07:58:05 2020 : Error: /etc/raddb/mods-enabled/ldap[8]: Instantiation failed for module "ldap"
As a workaround I've added rc_use="ldap" do /etc/conf.d/radiusd.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5921dd829647c67b900a994522325dc2e0fcb1ed commit 5921dd829647c67b900a994522325dc2e0fcb1ed Author: Tomáš Mózes <hydrapolic@gmail.com> AuthorDate: 2021-12-23 12:16:17 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2021-12-30 20:52:25 +0000 net-dialup/freeradius: bump to 3.0.25 Closes: https://bugs.gentoo.org/719984 Closes: https://bugs.gentoo.org/721040 Closes: https://bugs.gentoo.org/784143 Closes: https://bugs.gentoo.org/816972 Closes: https://bugs.gentoo.org/818205 Closes: https://github.com/gentoo/gentoo/pull/23479 Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Signed-off-by: Matt Turner <mattst88@gentoo.org> net-dialup/freeradius/Manifest | 1 + net-dialup/freeradius/files/radius.conf-r6 | 22 ++ net-dialup/freeradius/freeradius-3.0.25.ebuild | 267 +++++++++++++++++++++++++ 3 files changed, 290 insertions(+)