Skip to content
Advertisement

Tag: ldap

ldap filter for distinguishedName

I am successfully querying our Active Directory for a user with the following code: The resulting array gives this value for the manager attribute: This looks like a distinguishedName to me. But when I try to query for the manager’s record, the query fails with PHP Warning: ldap_search(): Search: Bad search filter I’ve tried a number of possibilities including different

How to check if a user account is locked via PHP/LDAP?

We’ve created an intranet site that requires the same password as the user’s network login, so we use LDAP to check the username/password. That’s fine, but if they enter it incorrectly three times it locks their account out, and one or two users have found this confusing. Is there anyway at all I could check, using LDAP/PHP whether or not

Advertisement