Example: mldap_logon_ex

In the following example, the mldap_logon function logs on to the LDAP server ldap1.

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