My Oracle Support Banner

Ldap Tools Such as ldapadd and ldapsearch Fail with "Segmentation Fault" or "ldap_sasl_interactive_bind_s" Errors (Doc ID 370259.1)

Last updated on APRIL 29, 2021

Applies to:

Oracle Internet Directory - Version 9.0.4 and later
Information in this document applies to any platform.

Symptoms

One of the following symptoms may be exhibited:

ldapsearch fails with:

ldapsearch -h <OID_host> -p <OID_port> -X -s sub -b "cn=<CN>,cn=users,<realm_DN>" -s sub "objectclass=*"

SASL/DIGEST-MD5 authentication started
Please enter your password:
Segmentation fault

Or:

ldapsearch -L -h <OID_host> -p <OID_port> -D cn=orcladmin -w <pwd> -b "<entry_DN>" -s base "objectclass=*"

SASL/DIGEST-MD5 authentication started
Please enter your realm:
ldap_sasl_interactive_bind_s: Invalid credentials

(Pre-11g) ldapsearch fails with:

ERROR
ldap_init( <HOSTNAME>, <PORT> )
SASL/DIGEST-MD5 authentication started
Please enter your password:
Please enter your realm: <REALM>
ldap_sasl_interactive_bind_s: Invalid credentials

(11g+) ldapsearch fails with:

ldap_sasl_interactive_bind_s: Unknown authentication method (-6)
    additional info: SASL(-4): no mechanism available: No worthy mechs found

Or:

SASL/GSSAPI authentication started
ldap_sasl_interactive_bind_s: Unknown API error (-50)
additional info: SASL(-1): generic failure:
<search and filter details>
ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)

From an RDBMS/Database system to a remore OID:

ld.so.1: ldapsearch: fatal: libldap50.so: open failed: No such file or directory
Killed


The issue can be reproduced at will with the following steps:

  1. Do not set any environment variables.
  2. Conduct an ldapsearch.
  3. One of the above errors is reproduced.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.