ldap_compare
bool ldap_compare(resource connectionID, string DN, string attribute, string value)
connectionID | Connection ID |
DN | Distinguished name to compare to |
attribute | Attribute on which to perform the comparison string value |
value | Value against which to compare the attribute’s setting |
Quickly compares an attribute.
Returns:
TRUE on success; FALSE otherwise
Description:
Rather than having to perform a search, loop through, or otherwise manage the results, and then code for the validation of an attribute, ldap_compare() allows you to quickly submit a query to an open LDAP connection and receive an answer. Traditionally, this is the mechanism used for password comparisons, Apache validation, and so on, because of the speed of this transaction. ...
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.