Hi!
Recently I've upgraded a FreeBSD server from v. 9.3 to v. 11.0 (through 10.3 because it "cowardly" refused to continue).
The system was using the old pkg_ so I deinstalled all ports and after the final update I freshly installed all of them.
I am using OpenLDAP on this system - net/openldap24-server and the corresponding client. After the installation I found that OpenLDAP server refuses to start on boot. When I try to start it via
In fact I usually start slapd with the following in /etc/rc.conf:
As you probably see neither
This is not the only system with FreeBSD 11 and net/openldap24-server I am running. All other systems run without problems even with the same port version.
Considering that during update some outdated files might be remaining I did a checkup with
Is the OpenLDAP server trying to start too early? And what could cause this?
Thanks in advance!
Recently I've upgraded a FreeBSD server from v. 9.3 to v. 11.0 (through 10.3 because it "cowardly" refused to continue).
The system was using the old pkg_ so I deinstalled all ports and after the final update I freshly installed all of them.
I am using OpenLDAP on this system - net/openldap24-server and the corresponding client. After the installation I found that OpenLDAP server refuses to start on boot. When I try to start it via
/usr/local/etc/rc.d/slapd start
it starts and works. After better debugging I found following messages generated during boot:
Code:
Nov 2 12:00:02 mail kernel: Starting slapd.
Nov 2 12:00:02 mail kernel: ldap_url_parse_ext(ldap://localhost/)
Nov 2 12:00:02 mail kernel: ldap_init: trying /usr/local/etc/openldap/ldap.conf
Nov 2 12:00:02 mail kernel: ldap_init: using /usr/local/etc/openldap/ldap.conf
Nov 2 12:00:02 mail kernel: ldap_init: HOME env is /
Nov 2 12:00:02 mail kernel: ldap_init: trying //ldaprc
Nov 2 12:00:02 mail kernel: ldap_init: trying //.ldaprc
Nov 2 12:00:02 mail kernel: ldap_init: trying ldaprc
Nov 2 12:00:02 mail kernel: ldap_init: LDAPCONF env is NULL
Nov 2 12:00:02 mail kernel: ldap_init: LDAPRC env is NULL
Nov 2 12:00:02 mail kernel: 5819d53e @(#) $OpenLDAP: slapd 2.4.44 (Nov 1 2016 22:26:21) $
Nov 2 12:00:02 mail kernel: ivo@mail.lovech.government.bg:/usr/ports/net/openldap24-server/work/openldap-2.4.44/servers/slapd
Nov 2 12:00:02 mail kernel: ldap_pvt_gethostbyname_a: host=, r=-1
Nov 2 12:00:02 mail kernel: 5819d53e daemon_init: ldap://0.0.0.0
Nov 2 12:00:02 mail kernel: 5819d53e daemon_init: listen on ldap://0.0.0.0
Nov 2 12:00:02 mail kernel: 5819d53e daemon_init: 1 listeners to open...
Nov 2 12:00:02 mail kernel: ldap_url_parse_ext(ldap://0.0.0.0)
Nov 2 12:00:02 mail kernel: 5819d53e daemon: bind(5) failed errno=49 (Can't assign requested address)
Nov 2 12:00:02 mail kernel: 5819d53e slap_open_listener: failed on ldap://0.0.0.0
Nov 2 12:00:02 mail kernel: 5819d53e slapd stopped.
Nov 2 12:00:02 mail kernel: 5819d53e connections_destroy: nothing to destroy.
Nov 2 12:00:02 mail kernel: /etc/rc: WARNING: failed to start slapd
Nov 2 12:00:02 mail kernel: Setting hostname: mail.example.com.
In fact I usually start slapd with the following in /etc/rc.conf:
Code:
slapd_enable="YES"
slapd_flags="-h ldap://127.0.0.1"
As you probably see neither
-4
option or binding to any IP helped.This is not the only system with FreeBSD 11 and net/openldap24-server I am running. All other systems run without problems even with the same port version.
Considering that during update some outdated files might be remaining I did a checkup with
freebsd-update IDS
. The only strange difference was /var/db/services.db. I regenrated it using services_mkdb
and then it passed the IDS check.Is the OpenLDAP server trying to start too early? And what could cause this?
Thanks in advance!