I have uploaded a suggest fix for ldap_pvt_connect() to: ftp://ftp.openldap.org/incoming/rhaferkamp-ldap_pvt_connect-its3524.dif Please review. To fix the select call in wait4msg() I have to understand the code first ;) -- Ralf