Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 719984 - net-dialup/freeradius: start after openldap server is running
Summary: net-dialup/freeradius: start after openldap server is running
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-04-29 06:03 UTC by Tomáš Mózes
Modified: 2021-12-30 20:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2020-04-29 06:03:01 UTC
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
Comment 1 Tomáš Mózes 2020-04-29 06:05:03 UTC
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"
Comment 2 Tomáš Mózes 2020-04-29 06:08:17 UTC
As a workaround I've added rc_use="ldap" do /etc/conf.d/radiusd.
Comment 3 Larry the Git Cow gentoo-dev 2021-12-30 20:52:49 UTC
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(+)