[Date Prev][Date Next]
Fix for SSL connection to Novell NDS LDAP server (ITS#821)
Full_Name: Matt Corey
OS: FreeBSD & Solaris 8
Submission from: (NULL) (220.127.116.11)
I have found a problem with an SSL/TLS connection to a Netware NDS server. If a
is run against the server through an ssl connection (ldapsearch -x -H
the client hangs in do_ldap_select. What is happening is that the NDS server
the response to about 8K blocks, sending when either a block is full, or the
is ready to be sent. If the block sent has multiple results in it, the first
one will be
returned, and the remaining are in the SSL buffer waiting for an SSL_read. In
the call to ber_sockbuf_ctrl to check for data returns indicating that there is
no data ready.
do_ldap_select is called next, blocking indefinitely waiting for data that we
The fix I made is in libraries/libldap/tls.c in the function sb_tls_ctrl. I
hook for LBER_SB_OPT_DATA_READY to check to see if SSL has data waiting with a
SSL_pending. If there is data waiting, I return 1, otherwise it lets the next
list handle the option.
I hope I explained that correctly, but I know that the patch works.