Unix/Linux Go Back    

Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Ldapsearch command not exiting


Thread Tools Search this Thread Display Modes
Old Unix and Linux 06-26-2013   -   Original Discussion by daniel333
daniel333 daniel333 is offline
Registered User
Join Date: Jun 2013
Last Activity: 26 June 2013, 4:18 PM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Ldapsearch command not exiting


New to this forum and unix here so please forgive any silly questions. I am on a Solaris 10 machine and need a script to query our Windows Domain controller to determine if a user is active or not. Man files were helpful enough and it worked.

The Challenge is the program doesn't exit when it's done. It displays the users information I wanted, but then sits there. This of course prevents me from putting this into a shell script.

Any idea how I get ldapsearch to exit when it's done displaying the information?

ldapsearch -v -LLL -x -D "CN=SUPER Man,OU=SSF,OU=UserAccts,DC=corp,DC=com " -h mydc01.corp.com -b "dc=corp,dc=com" "sAMAccountName=username*"

Sponsored Links
Old Unix and Linux 06-27-2013   -   Original Discussion by daniel333
Just Ice's Unix or Linux Image
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
Join Date: Mar 2005
Last Activity: 18 October 2016, 12:06 PM EDT
Location: Philadelphia metro
Posts: 961
Thanks: 3
Thanked 67 Times in 61 Posts
try running truss -p $ldapsearch_pid to see what the process is doing ... you might also want to snoop the network packets if you are allowed ...
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ldapsearch problem vasil Red Hat 0 04-23-2013 03:53 AM
ssh - running remote command not exiting swapnabhargav Shell Programming and Scripting 1 10-18-2012 07:29 AM
LDAPSEARCH in C tailangong Programming 0 07-01-2010 03:57 AM
ldapsearch and XML ldiaz2106 UNIX for Advanced & Expert Users 5 02-05-2010 02:02 AM
Shell script..invoking command and exiting at fixed intervals rajuak12 Shell Programming and Scripting 1 07-19-2008 10:34 AM

All times are GMT -4. The time now is 08:13 AM.