Filters of the type LDAP_FILTER_PRESENT generally determine if a specified attribute is assigned a value. For example:
This filter finds entries that have a value assigned to the mail attribute.
Call this function to get the attribute type from this filter. In the case of the example above, calling this function gets the attribute type mail.