Up to Contents

Back to Character Set Manipulation

Using SSL

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:

ld
The session handle.
negotiated
Whether the library should use Start TLS for neogtiating SSL. When communicating with an LDAPv3 server, this flag should always be set to 1.

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.

Up to Contents

Forward to Parsing LDAP URLs