OpenLDAP Error: Ldap_sasl_interactive_bind_s:invalid credenti

Source: Internet
Author: User
Tags ldapsearch openldap

The recent configuration of the OpenLDAP server on Redhat Enterprise Linux 6.0 is always prompting for an error:

Ldapwhoami or Ldapsearch is a SASL binding error


Ldap_sasl_interactive_bind_s:invalid credentials (49)
Additional INFO:SASL ( -13): User not found:no secret in database


There are a number of 49 error resolution methods for LDAP servers on the network, and I will summarize my own experience here:


1. The default OpenLDAP is a SASL-based binding that requires the SASL user and their password to be created first
[Email protected] html]# saslpasswd2-c UserName
Enter two password, password is saved in/etc/sasldb2, can use SASLDBLISTUSERS2 command to view user name
Use the-u username-w parameter in commands such as Ldapsearch, and then enter the password above it.


2. View Modify/etc/openldap/slapd.conf
ROOTPW 123456 Note: There is no space at the beginning of the line, and the attribute is separated by the Value interval tab


3. Mv/etc/openldap/slapd.d/etc/openldap/slapd.bak

Change this folder to another name, you need to do so in Redhat Enterprise Linux 6.4, other versions are unknown


4. chmod 644/etc/openldap/dlapd.conf, if not set to 777 try again


This article is from the "Elimination" blog, please be sure to keep this source http://zhangxiaohua.blog.51cto.com/2321741/1585308

OpenLDAP Error: Ldap_sasl_interactive_bind_s:invalid credenti

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.