Web Development Thread, ASP Password reset for AD in Coding and Web Development; I am looking for a asp / asp.net code snippet that will I can enbed in a student password reset ...
18th March 2010, 09:47 PM #1
ASP Password reset for AD
I am looking for a asp / asp.net code snippet that will I can enbed in a student password reset page for staff. My current code performs a winNT password reset, but that requires the existing password for the user.
What I want to be able to do is get a member of staff to log on using their credentials (they have delegated rights) and reset students passwords looking up the username from a drop down list.
IDG Tech News
18th March 2010, 10:45 PM #2
Resetting the password in ASP.NET is simple enough so long as you know the DN of the account you're resetting:
To enumerate the AD to retrieve a list of DNs and associated usernames, take a look at the DirectorySearcher class.
Dim sDN As String = "<DN of an OU containing students>"
Dim sNewPassword As String = "newpassword"
Dim oEntry As DirectoryEntry = New DirectoryEntry("LDAP://" & sDN)
18th March 2010, 11:21 PM #3
Have you looked at sspr and the staff admin section?
By Jonny_sims in forum Windows
Last Post: 26th September 2011, 11:12 PM
By Sp0oK in forum MIS Systems
Last Post: 5th February 2010, 11:16 AM
By matte53 in forum O/S Deployment
Last Post: 13th October 2009, 10:27 PM
By fafster in forum Windows
Last Post: 27th February 2008, 11:01 AM
By ryan_powell in forum Web Development
Last Post: 31st January 2008, 03:52 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)