[Date Prev][Date Next] [Chronological] [Thread] [Top]

ldapsearch and TLS



Hi,

Question about some code of ldapsearch

	if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
		ldap_perror( ld, "ldap_start_tls" );
		if ( use_tls > 1 ) {
			return EXIT_FAILURE;
		}
	}


I get the following:
E:\OpenLDAP\openldap-2.0.11\Release>ldapsearch -Z -x -b "c=BE" -h
"192.168.0.49"
 -p 389
ldap_start_tls: Success

eventhough ldap_start_tls_s returns a value different from LDAP_SUCCESS

WHY Success?

Thanks,
Geert