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:
<yambe:breadcrumb>Windows_Server_2008_Enterprise_R2|Windows Server 2008 Enterprise R2</yambe:breadcrumb>
[[Main Page|Home]] > [[Windows]] > [[Windows Server 2008 Enterprise R2]] > [[Setup AD password change page using PHP over LDAPS]]
=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:

  1. Verify that connection to AD server over LDAPS is working as described at Setup AD to respond to LDAP queries over LDAPS protocol
  2. git clone https://github.com/canbican/ad-change-pass
  3. yum -y install php-ldap
  4. Download HTML Purifier from http://htmlpurifier.org/ and copy internal contents of extracted "lib" folder to ad-change folder.
  5. Comment line 901 of HTMLPurifier/Config.php using // php comment option
  6. 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"];
  7. Copy config.php.example to config.php and set correct values
  8. 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