Sun Java System Calendar Server 6 2005Q4 Developer's Guide

Function: CEXP_Init

Purpose

Initializes the SDK.

Syntax

int CEXP_Init (char * pszLdapHost,
               char * pszLdapMatchAttrib,
               char * pszLdapDN,
               unsigned int iLdapPort,
               char * pszLdapBindUser,
               char * pszLdapBindPass,
               char * pszAdminUser,
               char * pszAdminPassword);

Parameters

pszLdapHost

A string containing the hostname of the directory server. 

pszLdapMatchAttrib

A string containing the attribute name. Used to match against the user name. 

pszLdapDN

A string containing the base DN to search for user records. “DN”, for Distinguished Name, is a string representation of an LDAP directory entry’s name and location. 

iLdapPort

An integer specifying the directory server’s port number. 

pszLdapBindUser

A string specifying the DN to bind as. 

pszLdapBindPass

A string containing the password for the bind DN. 

pszAdminUser

A string containing the Calendar Server administrator’s LDAP user ID. 

pszAdminPassword

A string containing the Calendar Server administrator’s password. 

Returns

Returns 0 on success, -1 on failure.

Comment

If the bind DN (pszLdapBindUser) and password (pszLdapBindPass) are NULL, anonymous searching is attempted.