I suppose you meant OPENLDAP_REL_ENG_2_1_MP and not OPENLDAP_REL_ENG_2_1. Anyway, the fixed fix you checked in is broken. It should read ... if ( rc == LDAP_SUCCESS ) { rc = ldap_int_tls_start( ld, ld->ld_defconn, NULL ); } ...