Example: mldap_search_ex

In the following example, the mldap_search_ex function searches for all objectclass attribute values on the base level.

mldap_search_ex(pldap,"LDAP Search",
             "Base=OU=Sales,DC=TECHNO,DC=com",
             "Scope=Base",    
            "Filter=(objectclass=*)",
             LAST );

In the following example, the mldap_search_ex function searches the name attribute one level beneath the base, for the name Dan.

mldap_search_ex(pldap,"LDAP Search",
             "Base=OU=Sales,DC=TECHNO,DC=com",
             "Scope=Onelevel",
             "Filter=(name=Dan)",
             "Timeout=10",
             "Mode=ASYNC", 
             LAST );