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

LdapConnectSSL
Syntax
LdapConnectSSL(connName, hostName, user, 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.
user
password
Description
Connects to the directory server using an encrypted connection. To use the LdapConnectSSL function, the following argument must have been entered in the argument file:
-ldapSslCertDb <path> specifying the path to the cert7.db certificate database
You do not need to use LdapConnectSSL for every script function. Once the server connection is established, it will only be closed when you apply the LdapDisconnect function, or when the job completes.
To establish a secure LDAP connection that is not closed when the job completes, see LdapConnectSSLPersistent.
Returns
1
-1
Example
LdapConnectSSL("con", "U-Stor-It.company.com:4205", "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 port 4205.
Note:
The common name (cn) consists of the first and last names of the user.
OpenText StreamServe 5.6 Updated: 2013-03-01