mldap_logoff

Listing Directory Functions (mldap)

Performs a logout from an LDAP server.

int mldap_logoff( );

The mldap_logoff function performs a logout from an LDAP server.

This function is for use with global sessions. For multiple sessions, use the mldap_logoff_ex function, which allows you to specify a session identifier.

Return Values

If this function succeeds, it returns E_OK. Otherwise, it returns a negative value.

Parameterization

No parameterization is available for this function.

Example

In the following example, the mldap_logoff function logs out from the LDAP server.

// Logon to the LDAP server
mldap_logon( "Login", "URL=ldap://johnsmith:tiger@ldap1:80", LAST );
// Logout from the LDAP server
mldap_logoff();