BASE, which is equivalent to reading an entry from the directory. An empty filter is not allowed. If you want to retrieve absolutely all information for this entry, use a filter of objectClass=*. If you know which entry types are used on the directory server, you might use an appropriate filter such as objectClass=inetOrgPerson. This call takes an optional fourth parameter, which is an array of the attributes required. It returns a search result identifier, or falseon error. The newly introduced parameters attrsonly, sizelimit, timelimit, and deref have exactly the same functionality as they have in the ldap_search() function. ldap_dn2ufn() string ldap_dn2ufn(string dn) ldap_dn2ufn() function is used to turn a DN into a more user-friendly form, stripping off type names of the attributes. For example the DN cn=Resident Geek, o=caffeinated, c=uk would be turned into Resident Geek, caffeinated, uk . ldap_explode_dn() array ldap_explode_dn(string dn, int with_attrib) ldap_explode_dn() splits a DN returned by ldap_get_dn() into its component parts, that is the RDNs. ldap_explode_dn()returns an array of all those components. with_attrib is used to request that the RDNs are returned with only values or their attributes as well. To get RDNs with attributes (attribute=value format), set with_attrib to 0, and to get only values set it to 1. ldap_first_attribute() string ldap_first_attribute(int link_identifier, int result_entry_identifier, int &ber_identifier); ldap_first_attribute() returns the first attribute in the entry pointed by the entry identifier. Remaining attributes are retrieved by calling ldap_next_attribute() successively. ber_identifier is an identifier to internal memory location pointer where all the results of this query are stored. It is passed by reference the & indicates this. The same ber_identifier is passed to the ldap_next_attribute()function, which reads the next entry and then updates the pointer to the next entry. ldap_first_entry() int ldap_first_entry(int link_identifier, int result_identifier) Entries in the LDAP result are read sequentially using the ldap_first_entry() and ldap_next_ entry() functions. ldap_first_entry() returns the entry identifier for first entry in the result. This entry identifier is then supplied to lap_next_entry() to get successive entries from the result. It returns the result entry identifier for the first entry on success or falseon error. ldap_free_result() boolean ldap_free_result(int result_identifier) Page 505
Hint: If you are looking for very good and affordable webspace to host and run your tomcat hosting application check Sandzak.com tomcat web hosting provider