LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2018, 10:16 AM   #1
ibzjuz
LQ Newbie
 
Registered: Nov 2018
Posts: 1

Rep: Reputation: Disabled
Erreur slapd : Job for slapd.service failed because the control process exited with error code


Bonjour à tous,

J'ai quelques soucis pour démarrer le service slapd.
Pourriez-vous m'indiquer ce qui cloche sur ma config ?

systemctl status slapd.service

slapd.service - OpenLDAP Server Daemon
Loaded: loaded (/usr/lib/systemd/system/slapd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since ven. 2018-11-30 16:33:30 CET; 41s ago
Docs: man:slapd
man:slapd-config
man:slapd-hdb
man:slapd-mdb
file:///usr/share/doc/openldap-servers/guide.html
Process: 8668 ExecStart=/usr/sbin/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS (code=exited, status=1/FAILURE)
Process: 8654 ExecStartPre=/usr/libexec/openldap/check-config.sh (code=exited, status=0/SUCCESS)

nov. 30 16:33:29 localhost.localdomain slapcat[8662]: ldapdb_canonuser_plug_init() failed in sasl_canonuser_add_plugin(): invalid parameter supplied
nov. 30 16:33:29 localhost.localdomain slapcat[8662]: _sasl_plugin_load failed on sasl_canonuser_init for plugin: ldapdb
nov. 30 16:33:30 localhost.localdomain slapd[8668]: @(#) $OpenLDAP: slapd 2.4.44 (May 16 2018 09:55:53) $
mockbuild@c1bm.rdu2.centos.org:/builddir/build/BUILD/openldap-2.4.44/openldap-2.4.44/servers/slapd
nov. 30 16:33:30 localhost.localdomain slapd[8668]: sql_select option missing
nov. 30 16:33:30 localhost.localdomain slapd[8668]: auxpropfunc error no mechanism available
nov. 30 16:33:30 localhost.localdomain slapd[8668]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
nov. 30 16:33:30 localhost.localdomain systemd[1]: slapd.service: control process exited, code=exited status=1
nov. 30 16:33:30 localhost.localdomain systemd[1]: Failed to start OpenLDAP Server Daemon.
nov. 30 16:33:30 localhost.localdomain systemd[1]: Unit slapd.service entered failed state.
nov. 30 16:33:30 localhost.localdomain systemd[1]: slapd.service failed.







journalctl -xe

nov. 30 16:28:35 localhost.localdomain systemd[1]: Starting OpenLDAP Server Daemon...
-- Subject: L'unité (unit) slapd.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- L'unité (unit) slapd.service a commencé à démarrer.
nov. 30 16:28:35 localhost.localdomain runuser[8320]: pam_unix(runuser:session): session opened for user ldap by (uid=0)
nov. 30 16:28:35 localhost.localdomain slaptest[8321]: sql_select option missing
nov. 30 16:28:35 localhost.localdomain slaptest[8321]: auxpropfunc error no mechanism available
nov. 30 16:28:35 localhost.localdomain slaptest[8321]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
nov. 30 16:28:35 localhost.localdomain slaptest[8321]: auxpropfunc error invalid parameter supplied
nov. 30 16:28:35 localhost.localdomain slaptest[8321]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb
nov. 30 16:28:35 localhost.localdomain slaptest[8321]: ldapdb_canonuser_plug_init() failed in sasl_canonuser_add_plugin(): invalid parameter supplied
nov. 30 16:28:35 localhost.localdomain slaptest[8321]: _sasl_plugin_load failed on sasl_canonuser_init for plugin: ldapdb
nov. 30 16:28:35 localhost.localdomain runuser[8320]: pam_unix(runuser:session): session closed for user ldap
nov. 30 16:28:35 localhost.localdomain check-config.sh[8317]: Checking configuration file failed:
nov. 30 16:28:35 localhost.localdomain check-config.sh[8317]: 5c015723 ldif_read_file: Permission denied for "//etc/openldap/slapd.d/cn=config.ldif"
nov. 30 16:28:35 localhost.localdomain check-config.sh[8317]: slaptest: bad configuration file!
nov. 30 16:28:35 localhost.localdomain slapcat[8325]: sql_select option missing
nov. 30 16:28:35 localhost.localdomain slapcat[8325]: auxpropfunc error no mechanism available
nov. 30 16:28:35 localhost.localdomain slapcat[8325]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
nov. 30 16:28:35 localhost.localdomain slapcat[8325]: auxpropfunc error invalid parameter supplied
nov. 30 16:28:35 localhost.localdomain slapcat[8325]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb
nov. 30 16:28:35 localhost.localdomain slapcat[8325]: ldapdb_canonuser_plug_init() failed in sasl_canonuser_add_plugin(): invalid parameter supplied
nov. 30 16:28:35 localhost.localdomain slapcat[8325]: _sasl_plugin_load failed on sasl_canonuser_init for plugin: ldapdb
nov. 30 16:28:35 localhost.localdomain slapd[8332]: @(#) $OpenLDAP: slapd 2.4.44 (May 16 2018 09:55:53) $
mockbuild@c1bm.rdu2.centos.org:/builddir/build/BUILD/openldap-2.4.44/openldap-2.4.44/servers/slapd
nov. 30 16:28:35 localhost.localdomain slapd[8332]: sql_select option missing
nov. 30 16:28:35 localhost.localdomain slapd[8332]: auxpropfunc error no mechanism available
nov. 30 16:28:35 localhost.localdomain slapd[8332]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
nov. 30 16:28:35 localhost.localdomain slapd[8332]: auxpropfunc error invalid parameter supplied
nov. 30 16:28:35 localhost.localdomain slapd[8332]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb
nov. 30 16:28:35 localhost.localdomain slapd[8332]: ldapdb_canonuser_plug_init() failed in sasl_canonuser_add_plugin(): invalid parameter supplied
nov. 30 16:28:35 localhost.localdomain slapd[8332]: _sasl_plugin_load failed on sasl_canonuser_init for plugin: ldapdb
nov. 30 16:28:35 localhost.localdomain slapd[8332]: ldif_read_file: Permission denied for "/etc/openldap/slapd.d/cn=config.ldif"
nov. 30 16:28:35 localhost.localdomain slapd[8332]: DIGEST-MD5 common mech free
nov. 30 16:28:35 localhost.localdomain slapd[8332]: slapd stopped.
nov. 30 16:28:35 localhost.localdomain slapd[8332]: connections_destroy: nothing to destroy.
nov. 30 16:28:35 localhost.localdomain systemd[1]: slapd.service: control process exited, code=exited status=1
nov. 30 16:28:35 localhost.localdomain systemd[1]: Failed to start OpenLDAP Server Daemon.
-- Subject: L'unité (unit) slapd.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- L'unité (unit) slapd.service a échoué, avec le résultat failed.
nov. 30 16:28:35 localhost.localdomain systemd[1]: Unit slapd.service entered failed state.
nov. 30 16:28:35 localhost.localdomain systemd[1]: slapd.service failed.
nov. 30 16:28:35 localhost.localdomain polkitd[650]: Unregistered Authentication Agent for unix-process:8310:667473465 (system bus name :1.26545, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale fr_FR.UTF-8) (disconnected from bus)
 
Old 11-30-2018, 10:49 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Welcome to LQ ibzjuz,

Pleas edit your question to change your question into English. Per the LQ Site Rules
  • All member-created content should be in English. This allows our moderators to ensure all content complies with all LQ rules. In addition, we recommend you avoid sms/l33t speak in the technical fora. Avoiding sms/l33t speak will improve question clarity and increase the chance of receiving a helpful response.
The other thing which will be helpful is to enclose the output contents in [code] tags. You can see how to use code tags from the link in my signature.

This will help separate the output reports and highlight the parts of this which are your questions and comments. I do not recommend you translate your log output data, leave that as is.
 
Old 11-30-2018, 07:31 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
My guess: check_config.sh finds an error, then mistakenly exists with SUCCESS. slapd is started, and due to the error that check_config.sh found, it fails miserably. As a result, you have a ton of error messages, and it's hard to drill down to the initial problem.

Perhaps you should start here:
Code:
nov. 30 16:28:35 localhost.localdomain check-config.sh[8317]: Checking configuration file failed:
nov. 30 16:28:35 localhost.localdomain check-config.sh[8317]: 5c015723 ldif_read_file: Permission denied for "//etc/openldap/slapd.d/cn=config.ldif"
If the config checker can't read a config file, my guess is that slapd can't read it either.

EDIT: Another observation: Your hostname is localhost.localdomain. I don't know whether that has anything to do with the problem, but since OpenLDAP is a network application, you should first ensure your networking is in order, which includes a proper hostname.

Last edited by berndbausch; 11-30-2018 at 07:35 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
systemd service failed to start with errror : “main process exited, code=exited, status=3/NOTIMPLEMENTED” prcm Red Hat 10 02-25-2022 02:15 AM
Varnish Failed to Control Process, exited with error kb2tfa Linux - Software 4 05-21-2018 01:10 PM
[thread 0xb7fe7b70 (lwp 3738) exited] program exited with code 01 aicaicai Linux - Newbie 1 12-04-2011 11:08 AM
ldap cannot carry slapd.conf changes or did not use /etc/openldap/slapd.conf joel_saul Linux - Server 6 08-21-2010 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration