Errors encountered during LDAP installation configuration, and workarounds

Source: Internet
Author: User
Tags ldap openldap

Error 1:

[Email protected] openldap]# ldapsearch-lll-w-x-h ldap://etiantian.org-d "cn=admin,dc=etiantian,dc=org"-B "dc= Etiantian,dc=org "" (uid=*) "

Enter LDAP Password:

Ldap_bind:invalid credentials (49)

Error Description:

When searching, prompt ldap_bind:invalid credentials ()

The official said it was a wrong password.

It's actually a version issue.

ldap2.3 and 2.4 configuration conflict issues



Workaround:

rm-rf/etc/openldap/slapd.d/*

Slaptest-f/etc/openldap/slapd.conf-f/etc/openldap/slapd.d/

ll/etc/openldap/slapd.d/

Chown-r LDAP.LDAP/ETC/OPENLDAP/SLAPD.D

/ETC/INIT.D/SLAPD restart

OK, fix it.


Error 2:

[Email protected] openldap]# slaptest-f/etc/openldap/slapd.conf-f/etc/openldap/slapd.d/

58116898/etc/openldap/slapd.conf:line 139: <rootpw> can only being set when RootDN is under suffix

Slaptest:bad Configuration directory!

Error Description:

Configuration file error, is the following location configuration error, note the symbol

106 Database BdB

107 suffix "Dc=etiantian. Dc=org "

108 Checkpoint 1024 15

109 RootDN "Cn=admin,dc=etiantian,dc=org"


Workaround:

106 Database BdB

107 suffix "Dc=etiantian,dc=org"

108 Checkpoint 1024 15

109 RootDN "Cn=admin,dc=etiantian,dc=org"


Error 3:

[Email protected] openldap]#/ETC/INIT.D/SLAPD restart

stopping SLAPD: [OK]

Checking configuration files for slapd: [FAILED]

58116b90 Ldif_read_file:permission denied for "/etc/openldap/slapd.d/cn=config.ldif"

Slaptest:bad Configuration file!


Error Description:

Permission denied when restarting , stating that permissions are insufficient


Workaround:

Chown-r LDAP.LDAP/ETC/OPENLDAP/SLAPD.D

/ETC/INIT.D/SLAPD restart

This article is from the "11002498" blog, please be sure to keep this source http://11012498.blog.51cto.com/11002498/1866198

Errors encountered during LDAP installation configuration, and workarounds

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.