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