cwbUN_OpenLocalLdapServer

Purpose

Creates a handle that can be used to access configuration information about the Directory Services (LDAP) server on the iSeries™ server.

Syntax

int cwbUN_OpenLocalLdapServerW
    ( LPCWSTR              system,
      cwbUN_ldapSvrHandle  *pHandle
    );
 
int cwbUN_OpenLocalLdapServerA
    ( LPCSTR               system,
      cwbUN_ldapSvrHandle  *pHandle
    );

Parameters

LPCSTR system - input
Pointer to iSeries system name.
cwbUN_ldapSvrHandle *pHandle - output
On return, contains a handle that can be used with the following APIs:
  • cwbUN_FreeLocalLdapServer
  • cwbUN_GetLdapSvrPort
  • cwbUN_GetLdapSvrSuffixCount
  • cwbUN_GetLdapSuffixName
    Note: This handle should be released with a call to cwbUN_FreeLocalLdapServer

Return Codes

The following list shows common return values:

CWB_OK
Successful completion.
CWB_INVALID_API_PARAMETER
Invalid parameter specified.
CWB_INVALID_POINTER
A NULL pointer was specified.
CWBUN_LDAP_NOT_AVAIL
Directory Services is not installed or the server has not been configured.

Usage

None