On 11/04/2013 05:22 PM, Rich Megginson wrote:
On 11/04/2013 09:08 AM, Jan Tomasek wrote:
On 11/04/2013 05:04 PM, Rich Megginson wrote:
Does the script open a connection to the same server it is being called
from?
Yes.
So this is a case of self-deadlock? I don't understand. What is it
exactly that you expect will happen?
If there is one connection it works. If there is 29 parallel bind
requests it works. If there is 30 and more it immediately hang. I'm
seeking why 29 is ok and 30 is bad.
I do this:
for i in `seq 1 30`
do
time ldapsearch -LLL -H ldaps://xxx.cesnet.cz -x \
-b dc=perun-shadow,dc=cesnet,dc=cz \
-D "uid=semik$i,ou=People,dc=perun-shadow,dc=cesnet,dc=cz" \
-w 'zadek' -s base dn &
done
and 389 is immediately deadlocked. That should not happen I think.
The script itself binds anonymously so it should not go into PAM.