PHP Active Directory Password Reset

LDAP is the Lightweight Directory Access Protocol, a protocol used to access and manage Directory Servers such as Active directory. The Directory is a special kind of database that holds information in a tree structure. This php function which resets an active directory account password, accept three variables, one is the domain controller IP, samaccount name and a password. To get this function working, You will need to get and compile LDAP client library from either OpenLDAP and compile PHP with LDAP support. OpenLDAP Software is an open source implementation of the Lightweight Directory Access Protocol.

Please refer this post forĀ  ldap library installation.

The function can be invoked as

 

Please follow and like us: