#include <ldap.h>
#include <ldapssl.h>
int ldap_app_ssl_start_np(LDAP *ld,
char *dcm_identifier)
|
The ldap_app_ssl_start_np() function is used to start a secure connection (using Secure Sockets Layer (SSL)) to an LDAP server using the Digital Certificate Manager (DCM) to control the digital certificate.
ldap_app_ssl_start_np() must be called after ldap_open() and prior to ldap_bind(). Once the secure connection is established for the ld, all subsequent LDAP messages that flow over the secure connection are encrypted, including the ldap_bind() parameters, until ldap_unbind() is called.
No OS/400 authority is required. All authority checking is done by the LDAP server.
If ldap_app_ssl_start_np() will return LDAP error code if not successful. See LDAP Client API Error Conditions for possible LDAP error code values.
The following message may be set from this function.
CPF3CF2 E Error(s) occurred during running of ldap_app_ssl_start_np API.
ldap_ssl_init() -- Initializes an SSL connection.
ldap_ssl_start() -- Creates a secure SSL connection.
ldap_bind() -- bind to the directory server.
ldap_unbind() -- unbind from the LDAP server and close the connection.
ldap_open() -- Open a connection to an LDAP server.
|
Top
| LDAP APIs List APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |