2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OpenLDAPが起動しない場合

Last updated at Posted at 2019-04-18

インストール

yum install openldap-clients openldap-servers

設定ファイル

cp -p /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG

バージョン確認

slapd -V

起動

systemctl start slapd
Job for slapd.service failed because the control process exited with error code. See "systemctl status slapd.service" and "journalctl -xe" for details.

ここでどうしても起動しない、詰んだ。

journalctl -xeすると

 4月 18 10:51:59 runuser[15166]: pam_unix(runuser:session): session opened for user ldap by (uid=0)
 4月 18 10:51:59 runuser[15166]: pam_unix(runuser:session): session closed for user ldap
 4月 18 10:51:59 slapd[15169]: @(#) $OpenLDAP: slapd 2.4.44 (Jan 29 2019 17:42:45) $
                                                   mockbuild@x86-01.bsys.centos.org:/builddir/build/BUILD/openldap-2.4.44/openldap-2.4.44/
 4月 18 10:51:59 slapd[15169]: daemon: bind(8) failed errno=98 (Address already in use)
 4月 18 10:51:59 slapd[15169]: daemon: bind(8) failed errno=98 (Address already in use)
 4月 18 10:51:59 slapd[15169]: slapd stopped.
 4月 18 10:51:59 slapd[15169]: connections_destroy: nothing to destroy.
 4月 18 10:51:59 systemd[1]: slapd.service: control process exited, code=exited status=1
 4月 18 10:51:59 systemd[1]: Failed to start OpenLDAP Server Daemon.

解決方法

cd /var/run/openldap
rm slapd.args

ほかにもSELinuxのせいで起動しないとかもあります。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?