Example: mldap_logon

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

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