Script functions reference > Script functions in alphabetical order > L > LdapConnectSSLCCAPersistent

LdapConnectSSLCCAPersistent
Syntax
LdapConnectSSLCCAPersistent(connName, hostName, certNick, password);
connName 
A name you specify which will be used in all the following LDAP functions to identify which server they will access.
hostName
The name of the server to which you want to establish a connection. The default port is 636, but can be overridden using the host:port syntax in the host name.
certNick
password
Description
Connects to the directory server using an encrypted connection. A Client Certificate Authentication is provided instead of user/password authentication.
To use the LdapConnectSSLCCAPersistent function, the following two arguments must have been entered in the argument file:
-ldapSslCertDb <path> specifying the path to the cert7.db certificate database
-ldapSslKeyDb <path> specifying the path to the key3.db key database
You do not need to use LdapConnectSSLCCAPersistent for every script function. Once the server connection is established, it will only be closed when you apply the LdapDisconnect function.
Returns
1
-1
Example
LdapConnectSSLCCAPersistent("con", "U-Stor-It.company.com","cn=Directory Manager","streamserve");
In this example, an encrypted connection is established to the LDAP server on the machine named U-Stor-It.company.com. The connection is given the name con and attaches to the default port (636).
Note:
The common name (cn) consists of the first and last names of the user.
OpenText StreamServe 5.6 Updated: 2013-03-01