FreeBSD 12 - OpenLDAP: WARNING: failed precmd routine for slapd

marplan72

New Member

Reaction score: 1
Messages: 4

Hi

I tried to start OpenLDAP:
Code:
/usr/local/etc/rc.d/slapd: WARNING: failed precmd routine for slapd

Using:
FreeBSD 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC amd64

Any idea?

Best regards
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 10,662
Messages: 36,408

Did you configure it? Read pkg info -D openldap24-server.
 
OP
M

marplan72

New Member

Reaction score: 1
Messages: 4

pkg info -D openldap24-server

Before my post was published, I did re-install OpenLDAP using ports instead pkg and now, it works!

pkg info -D openldap-server
openldap-server-2.4.49_1:
On install:
The OpenLDAP server package has been successfully installed.


Thanks for your response.
Best regards
 

manilaboy1vic

Member

Reaction score: 3
Messages: 66

I ran into the same issue.

The configuration file is quite sensitive. All I did to resolve the issue is make sure the configuration file was lined up with the statements that were there already.

The following will cause an error when trying to run the service.

Code:
# Load dynamic backend modules:
modulepath      /usr/local/libexec/openldap
 moduleload     back_mdb
 moduleload     back_ldap

Soon as I changed it to look like the following it started up no problem:

Code:
# Load dynamic backend modules:
modulepath      /usr/local/libexec/openldap
moduleload      back_mdb
moduleload      back_ldap
 
Top