ldapsearch time limit


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ldapsearch time limit
# 1  
Old 02-10-2009
ldapsearch time limit

We have an application that uses Active directory to authenticate the users. the admins of the app. were complaining because the windows domain controller they are going against is not very stable. I wrote a shell script using ldapsearch to look up a user against the domain controller their app uses, and if it can't complete the lookup it pages them that LDAP may be down. here is the command i am using:
ldapsearch -h 10.168.170.100 -b "dc=nslijhs,dc=net" -D svc-bdvr -w 5703ibm '(Cn=svc-psft)'

this works fine, my question is what is the default time limit it waits for the search to complete before coming back it can't do the lookup. I am not using the -l switch which is supposed to specify how long it waits. when I searched the web for ldapsearch it shows that switch and explains it, but never says if it is not part of the command how long it actually waits.
# 2  
Old 02-10-2009
i'm guessing from your efforts and from the fact that there is no reference to
this in the man page for ldapsearch . . .. that the default is.... "until there's a response".

the -l option was implemented explicitly to deal with the situation you have.
# 3  
Old 02-10-2009
Yeah, i think you are right. I am now playing around with the -l to tune the script more. thanks.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Postfix keeps returning "Command time limit exceeded" message

We are having issues with our Postfix. The POP and IMAP services randomly stops working an sent e-mails return a "Command time limit exceeded". We've found out that running these command fix the problem: service cyrus-imapd stop rm /var/lib/imap/tls_sessions.db* rm... (2 Replies)
Discussion started by: GustavoAlvarado
2 Replies

2. Red Hat

Ldapsearch problem

Hi I'm not familiar with ldap and I hope someone to help me. I need to get some attribute value from ldap DB. When i run the following command is OK: ldapsearch -h localhost -p 16611 -x -D cn=user -w passwd -b msisdn=359502479649,dc=MSISDN,DC=C-NTDB "(objectClass=SUBINNSS)" refinmocNAME the... (0 Replies)
Discussion started by: vasil
0 Replies

3. UNIX for Advanced & Expert Users

Time limit on ifconfig wlan0 down?

Is there a time limit ifconfig wlan0 down? I used that command to take my wireless down. sudo ifconfig wlan0 downWhen I came back about 6 hours later it was working without me bringing my wireless back up. I am the only one that uses my computer or that knows the root password. (0 Replies)
Discussion started by: cokedude
0 Replies

4. Solaris

Limit: stacksize: Can't remove limit

Hi all, I'm using to Solaris machine. When I run a simple script this messenger come out:"limit: stacksize: Can't remove limit". Any one know the way to resolve this problem without reboot the machine? Thanks in advance. (3 Replies)
Discussion started by: Diabolist9
3 Replies

5. UNIX for Dummies Questions & Answers

problem in time limit of a job on slurm

Hello everyone. I am trying to do a parallel computation and the computation continues for like an hour and then it stops with the error: slurmd: *** JOB 785385 CANCELLED AT 2012-02-08T20:18:42 DUE TO TIME LIMIT *** Please can anyone tell me what is going on and how to fix the error...I... (0 Replies)
Discussion started by: lebphys78
0 Replies

6. UNIX for Dummies Questions & Answers

Need assistance on using ldapsearch

Never knew of this command ldapsearch, but I would like to use it to lookup a single user and return where their office is. Is this possible? I'm totally starting from scratch. I already saw some of the gurus say read the man page, which is pretty greek when you don't know the details of... (1 Reply)
Discussion started by: srhadden
1 Replies

7. Programming

LDAPSEARCH in C

Hi all, I've been searching for ldapsearch function these few days. Still I couldn't found the solution. I would like to translate this query ldapsearch -x -LLL -h new_IP -p new_Port -D "cn=jw" -w "dummy" -b "id=2311,o=WC,c=jp" -s sub to ldap_search_ext_s() function in C program. ... (0 Replies)
Discussion started by: tailangong
0 Replies

8. Shell Programming and Scripting

I need to set a time limit for a script

Hello Folks, I have been asked to write a test script which can be run by students. the script should have a time limit. I have almost completed it except the bit of timing! I've seen something like this: on_timeout() { echo "$USER $score " >> theresult.txt echo "Time out!... (2 Replies)
Discussion started by: SultanKSA
2 Replies

9. AIX

failed login time limit

Hello, we had a situation where an account was locked out due to too many failed login attempts. From the logs (failedlogin, etc) it appears that AIX 'remembered' the failed login attempts from the past month or so. does anyone know where this is set, or how long it will remember the number of... (2 Replies)
Discussion started by: zuessh
2 Replies

10. UNIX for Dummies Questions & Answers

Limit login time...

How do I limit the amount of idle time an account gets on solaris? Thanks. VJ (2 Replies)
Discussion started by: vancouver_joe
2 Replies
Login or Register to Ask a Question