PHP Developer's Dictionary- P48:PHP is an open source, server-side, HTML-embedded scripting language used to create dynamically generated Web pages. With an easy-to-use syntax and a large, extensible library of modules, PHP brings together the best of Perl, C++, and other languages. | PHP Developer s Dictionary result_array count number of values in result result_array 0 value of first entry If you want to return binary values see the entry for the ldap_get_values_len function. ldap_get_values_len Syntax array ldap_get_values_len int ldap pointer int result string attribute Description The ldap_get_values_len function which was added in PHP returns all binary values in an array of a specified attribute from an internal LDAP search result . result_array count number of values in result result_array 0 value of first entry If you want to return string values see the entry for the ldap_get_values function. ldap_list Syntax int ldap_list int Idap pointer string base_distinguished name string filter array attributes int attributes_only int size_limit int time_limit int dereference Description The ldap_list function performs a single-level search that is its scope is LDAP_SCOPE_ONELEVEL which is one level below the base_distinguished_name for the specified filter . The filter is in the format of attribute vaiue . If you want to return entries for all values you can simply pass as the value. If you want to restrict the results of this function you can do so by limiting it to just the attributes which are optional specified in an array. If you want only the attribute types returned and not the values you can set attributes_oniy equal to IT-SC book 235 PHP Developer s Dictionary 1. It is also possible to further limit it by the optional size_iimit which is the number of entries to be returned. The optional time_iimit enables you to specify the number of seconds the function has to complete. The final attribute dereference defines how you want aliases in the LDAP server to be handled. Table shows the complete list from which you have to choose. Table . Possible Values for the dereference Attribute Value Description LDAP_DEREF_ALWAYS Aliases should be always dereferenced. LDAP_DEREF_FINDING Aliases should not be dereferenced during the .