Back to Character Set Manipulation
The ldap_tls_start() can be used to negotiate the use of SSL on a connection. Note that this call is specific to the Innosoft implementation.
int ldap_tls_start(LDAP *ld,int negotiated);
Parameters are:
If the function returns LDAP_SUCCESS, then SSL has been successfully negotiated on the connection. For any other error code, the negotiation failed. Following a failed negotiation the client should use ldap_unbind() to disconnect from the server.