Difference between revisions of "Setup AD password change page using PHP over LDAPS"
From Notes_Wiki
(Created page with "<yambe:breadcrumb>Windows_Server_2008_Enterprise_R2|Windows Server 2008 Enterprise R2</yambe:breadcrumb> =Setup AD password change page using PHP over LDAPS= To setup AD pass...") |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[Windows]] > [[Windows Server 2008 Enterprise R2]] > [[Setup AD password change page using PHP over LDAPS]] | |||
To setup AD password change page using PHP over LDAPS use: | To setup AD password change page using PHP over LDAPS use: | ||
Line 23: | Line 22: | ||
'''Note that both old and new passwords might work for 15min after changing password.''' | '''Note that both old and new passwords might work for 15min after changing password.''' | ||
[[Main Page|Home]] > [[Windows]] > [[Windows Server 2008 Enterprise R2]] > [[Setup AD password change page using PHP over LDAPS]] |
Latest revision as of 08:26, 6 April 2022
Home > Windows > Windows Server 2008 Enterprise R2 > Setup AD password change page using PHP over LDAPS
To setup AD password change page using PHP over LDAPS use:
- Verify that connection to AD server over LDAPS is working as described at Setup AD to respond to LDAP queries over LDAPS protocol
- git clone https://github.com/canbican/ad-change-pass
- yum -y install php-ldap
- Download HTML Purifier from http://htmlpurifier.org/ and copy internal contents of extracted "lib" folder to ad-change folder.
- Comment line 901 of HTMLPurifier/Config.php using // php comment option
- Update ad-change/functions.php to have
- if (isset($info[0]["lockoutTime"]))
- $isLocked = $info[0]["lockoutTime"];
- else
- $isLocked = 0;
-
- in place of
- $isLocked = $info[0]["lockoutTime"];
- in place of
- Copy config.php.example to config.php and set correct values
- Test by changing passwords.
Note that both old and new passwords might work for 15min after changing password.
Home > Windows > Windows Server 2008 Enterprise R2 > Setup AD password change page using PHP over LDAPS