I'm creating an ASP application to allow users to change their active directory password over an SSL connection.
I finally got all this working but the method I'm using to get it done requires the domain admin password as shown below.
Set objIADS = GetObject("WinNT:").OpenDSObject("WinNT://domain", "Administrator", sDomainPassword, ADS_SECURE_AUTHENTICATION)
Set objIADSUser = objIADS.GetObject("user", sUserID)
objIADSUser.ChangePassword sOldPassword, sNewPassword
Now all that works fine but I need to pass the domain admin password to the OpenDSObject method.
I obviously don't want to store it in the clear in a text variable nor in the clear in a SQL Server table so what other options do I have?