Solving ldap_sasl_interactive_bind_s error with ldapsearch or ldapmodify

Contributor Icon Contributed by qmchenry  
Tag Icon Tagged: UNIX  

This error message is commonly found when using the OpenLDAP ldapsearch, ldapmodify, ldapadd or other ldap command line utilities against non-OpenLDAP servers such as Sun’s SunONE/iPlanet, IBM’s Tivoli, or Novell directory servers. This recipe explains the error and describes how to solve it.


OpenLDAP uses SASL (Simple Authentication and Security Layer) by default, while most other LDAP servers do not.

If you are not interested in enabling SASL on the target LDAP server, you can use simple authentication by adding the -x command line option to the ldap commands.

 

4 Comments -


  1. dpt1t@yahoo.com said on February 9, 2009

    wonderful, very nice explanation

  2. Sahiramjangir123 said on October 19, 2010

    ldap_sasl_interactive_bind_s

  3. Itchy said on September 1, 2011

    This is a solution for:
    ldap_sasl_interactive_bind_s: Local error (-2)

  4. Hanish Madan said on December 12, 2011

    Thanks you saved my hours to find the solution on google.

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -