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
SplunkTrust
SplunkTrust

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
SplunkTrust
SplunkTrust

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
SplunkTrust
SplunkTrust

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
SplunkTrust
SplunkTrust

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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Thanks for the Memories: .conf26 Took Learning to New Heights

Thank you, Splunk Community, for making .conf26 in Denver one for the books. From packed Splunk University ...

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...