Purpose
Returns the port number of the server used to publish this information.
Syntax
int cwbUN_GetLdapPublishPort
( cwbUN_ldapPubHandle handle,
int index,
int *port,
cwbUN_LdapCnnSecurity *connectionSecurity
);
Parameters
- cwbUN_ldapPubHandle handle - input
- A handle previously obtained by a call to cwbUN_OpenLdapPublishing().
- int index - input
- Zero-based index of the publish record. This value must be less than the
count returned by cwbUN_GetLdapPublishCount().
- int * port - output
- The port number used to connect to the server.
- cwbUN_LdapCnnSecurity * connectionSecurity - output
- The type of connection used to connect to the server. This indicates the
type of connection that can be established over the associated port. Possible
values include:
- CWBUN_LDAPCNN_NORMAL
- A normal connection is used.
- CWBUN_LDAPCNN_SSL
- An SSL connection is used.
Return Codes
The following list shows common return values:
- CWB_OK
- Successful completion.
- CWB_INVALID_API_HANDLE
- Invalid handle.
- CWB_INVALID_API_PARAMETER
- Invalid index.
- CWB_INVALID_POINTER
- A NULL pointer was specified.
Usage
None