Ldapsearch command not exiting | Unix Linux Forums | Solaris

  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

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-26-2013
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

All,

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?


Code:
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
    #2  
Old 06-27-2013
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
 
Join Date: Mar 2005
Last Activity: 20 September 2013, 10:59 AM EDT
Location: Philadelphia metro
Posts: 958
Thanks: 3
Thanked 66 Times in 59 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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:53 AM
ssh - running remote command not exiting swapnabhargav Shell Programming and Scripting 1 10-18-2012 06:29 AM
LDAPSEARCH in C tailangong Programming 0 07-01-2010 02:57 AM
ldapsearch and XML ldiaz2106 UNIX for Advanced & Expert Users 5 02-05-2010 01:02 AM
Shell script..invoking command and exiting at fixed intervals rajuak12 Shell Programming and Scripting 1 07-19-2008 09:34 AM



All times are GMT -4. The time now is 05:52 PM.