# tibemsSSLParams_System_SetLdapServerUrl

Function

## Purpose

Set the server URLs to be used to access LDAP for certificates and CRLs.

## C Declaration

    tibems_status tibemsSSLParams_System_SetLdapServerUrl(
        tibemsSSLParams params,
        const char* urls)

## COBOL Call

    CALL "tibemsSSLParams_System_SetLdapServerUrl"
         USING BY VALUE SSLParams,
               BY REFERENCE urls,
               RETURNING tibems-status
    END-CALL.

Note: `SSLParams` and `password` have usage pointer.

## IBM i

This function is not supported on IBM i systems.

## Parameters

Parameter | Description
--- | ---
`params` | SSL parameter object.
`urls` | URLs of the LDAP servers to be used for obtaining trusted certificates and CRLs. The format of the URL is: server`[:`port`]` server2`[:`port2`]` where server is the EMS server name or IP address and port is the server port number. If the server runs on the standard LDAP port, 389, specifying the port parameter is optional. Specify multiple servers in a space-delimited string.

## Remarks

Once LDAP parameters are established, these parameters remain in effect for the life of the client application, and cannot be overridden by subsequent specifications. The first connection to be established sets the LDAP parameters for all subsequent connections.

Returns `TIBEMS_OK` if it succeeds, otherwise `TIBEMS_SSL_ERROR`.

## See Also

`tibemsSSLParams_System_SetLdapServerPassword`

`tibemsSSLParams_System_SetLdapServerUserid`

Copyright © Cloud Software Group, Inc. All rights reserved.