Syntax:#include <aclapi.h>
NSAPI_PUBLIC
int ACL_LDAPSessionAllocate(NSErr_t *errp, const char *dbname,
LDAP **ld, const char **basedn)Parameters:
This function has the following parameters:
errp
Pointer to the header for a list of error frames.dbnameName of the LDAP database. If this argument is NULL, the default database is used.ldPointer to the returned connection handle to the LDAP server. If you are performing LDAP operations through LDAP API function calls, you need to pass this handle as an argument to the functions you call. This parameter must not be NULL.basednPointer to the returned distinguished name (DN) of the root object in the LDAP directory (for example, o=Ace Industry,c=US). Note that unlike ACL_LDAPDatabaseHandle(), the returned value is a (const char *), which need not be freed by the caller, and which is valid until ACL_LDAPSessionFree() is called. This parameter may be NULL if the base DN is not needed.Returns:LAS_EVAL_TRUE if successful, or LAS_EVAL_FAIL if an error occurs.
Example:
See lasemail.c.
Syntax:
#include <aclapi.h>void ACL_LDAPSessionFree(LDAP *ld)
Parameters:
ld
This is the handle for the LDAP connection that was previously returned by ACL_LDAPSessionAllocate().Returns:No value is returned.
Example:
See lasemail.c.