All Apps and Add-ons
Highlighted

sa-ldapsearch problem

Explorer

After I install SA-ldapsearch module in my splunk ,I use this search command "|ldapsearch domain=SPL search="(objectClass=user)" ,but I got this error message...

errread, errwrite)
process = Popen(javaargs)
raise child
exception
File "/opt/sbox/splunk/etc/apps/SA-ldapsearch/bin/ldapsearch.py", line 63, in
File "/opt/sbox/splunk/lib/python2.7/subprocess.py", line 1308, in executechild
File "/opt/sbox/splunk/lib/python2.7/subprocess.py", line 711, in init
External search command 'ldapsearch' returned error code 1.
OSError: [Errno 2] No such file or directory
Traceback (most recent call last)

can anyone help me to solve this problem !!!!

Tags (2)
0 Karma
Highlighted

Re: sa-ldapsearch problem

Path Finder

I had a similar issue recently, and mine was due to java not being in the path.

Is it creating a SA-ldapsearch.log (or similar log file) in your Splunk logs directory? If not make sure you have JAVA_HOME set and java in your PATH (think it needs jdk1.7). If there is a log, that should give more info as to the error

0 Karma
Highlighted

Re: sa-ldapsearch problem

Explorer

SOORY........where is the SA-ldapsearch.log>>

0 Karma
Highlighted

Re: sa-ldapsearch problem

Path Finder

In the Splunk log directory, eg $SPLUNK_HOME/var/log/splunk/

If it doesn't exist, good chance java's not in your path/java_home isn't set

0 Karma
Highlighted

Re: sa-ldapsearch problem

Explorer

HELLO

this is my log folder files...

HadoopConnect.log licenseusage.log scheduler.log splunkdaccess.log.2
MSADAppChecker.log licenseusage.log.1 scheduler.log.1 splunkdaccess.log.3
audit.log licenseusage.log.2 scheduler.log.2 splunkdaccess.log.4
audit.log.1 licenseusage.log.3 scheduler.log.3 splunkdaccess.log.5
audit.log.2 licenseusage.log.4 scheduler.log.4 splunkdstderr.log
audit.log.3 licenseusage.log.5 scheduler.log.5 splunkdstdout.log
audit.log.4 metrics.log searchhistory.log webaccess.log
audit.log.5 metrics.log.1 sos
ftr.log webaccess.log.1
btool.log metrics.log.2 splunkd-utility.log web
access.log.2
djangoaccess.log metrics.log.3 splunkd.log webaccess.log.3
djangoerror.log metrics.log.4 splunkd.log.1 webaccess.log.4
djangoservice.log metrics.log.5 splunkd.log.2 webaccess.log.5
entity.log migration.log.2014-04-23.06-09-06 splunkd.log.3 webavailabilitymodularinput.log
export
metrics.log python.log splunkd.log.4 webservice.log
first
install.log python.log.1 splunkd.log.5 websitemonitoringresthandler.log
jbridge.log python
modularinput.log splunkdaccess.log websitemonitoringrest_handler.log.1

licenseaudit.log remotesearches.log splunkd_access.log.1

I can not find SA-ldapsearch.log........

0 Karma
Highlighted

Re: sa-ldapsearch problem

Explorer

splunk@A2000 ~ $ java -version
java version "1.7.045"
Java(TM) SE Runtime Environment (build 1.7.0
45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)


this is my java version result.....

0 Karma
Highlighted

Re: sa-ldapsearch problem

Engager

Hi

I had the same issue, it seems that the ldap search app requires java.

For me it was as easy as installing java on my systems. I am running Redhat so yum install java did the job for me.

So just check how to install java for your respective OS.

I found this in the http://docs.splunk.com/Documentation/ActiveDirectory/latest/DeployAD/ConfiguretheSA-ldapsearchsuppor...

Important: The SA-ldapsearch supporting add-on for Active Directory requires the Java Standard Edition Runtime Environment version 1.7 or later. Make sure you have installed this Java runtime environment prior to installing the SA-ldapsearch supporting add-on.

Hope this help.

Cheers
C.