All Apps and Add-ons

Why am I showing an error when loading LDAP module?

bruce845
Explorer

Hi.

When I try to use this add-on I see this error on myldap.py.log (on debug mode):

myldap:63 - ERROR: LDAP modul load failed with error libsasl2.so.2: cannot open shared object file: No such file or directory!

It happens on these operating systems:

Red Hat Enterprise Linux Server release 7.4 (Maipo)
CentOS Linux release 7.4.1708 (Core)

My Splunk Enterprise version is 7.0.4
My Python Version is 2.7.5.

How I correct this issue?

0 Karma
1 Solution

MuS
Legend

Hi bruce845,

writer of the app here, check the dependencies of the app:

Python ldap module used in this app https://pypi.python.org/pypi/python-ldap/2.4.19 so make sure you meet all dependencies.

The modul is very strict, and need to have the correct versions of all dependencies installed/available. See other answers with similar problems https://answers.splunk.com/answers/267564/add-on-ldap-why-am-i-getting-external-search-comma.html

Hope this helps ...

cheers, MuS

View solution in original post

0 Karma

MuS
Legend

Hi bruce845,

writer of the app here, check the dependencies of the app:

Python ldap module used in this app https://pypi.python.org/pypi/python-ldap/2.4.19 so make sure you meet all dependencies.

The modul is very strict, and need to have the correct versions of all dependencies installed/available. See other answers with similar problems https://answers.splunk.com/answers/267564/add-on-ldap-why-am-i-getting-external-search-comma.html

Hope this helps ...

cheers, MuS

0 Karma

bruce845
Explorer

Hi MuS.

After I installed python-ldap package, it still not working.

Regards,
Bruce Campos

0 Karma

MuS
Legend

You don't have to install the package, the package is included in the TA .... but you need to make sure that the included version has all needed dependencies available.

cheers, MuS

0 Karma

bruce845
Explorer

I'm not finding correct dependences for this add-on works on CentOS 7. On other distros (ex. Ubuntu), it works with no problems.

This LDAP add-on is very useful.

Regards,
Bruce Campos

0 Karma

MuS
Legend

yeah, sorry to hear. It looks like CentOS does not like it very much ....

I had planed to update the app anyway, and to use a LDAP egg instead.

Feel free to accept the answer if it was helpful 🙂

cheers, MuS

0 Karma

bruce845
Explorer

Hi MuS.

Thanks for help me and your avaliability for answer my questions. Your add-on is very helpful, I need to contribute to inprove it.

Considering Red Hat/CentOS distros (version 7 is enough) in your plan to update, I'm sure that you'll make many Splunkers (including me) happier.

Best Regards,
Bruce Campos

0 Karma

bruce845
Explorer

Hi MuS.

I find that libsasl2.so.2 is avaliable on package "cyrus-sasl-lib". But, i tried to install and it doesn't work. I'm trying to resolve this dependence.

On CentOS 7, I cannot find the package version that contains libsasl2.so.2

Regards,
Bruce Campos

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...