EduGeek Self Service Password Reset Thread, Self Service Password Reset in Projects:; Originally Posted by zbjsy
managed to get it working, seems that page doesnt like the variables used, if you manually ...
-
9th July 2010, 09:13 PM #256
- Rep Power
- 0

Originally Posted by
zbjsy
managed to get it working, seems that page doesnt like the variables used, if you manually set them in that, min length etc it works. can supply code if needed.
If you could upload the code as to how you did this, that would be great.
I've gotten a new boss, and he decided he wants this implemented this.
I just discovered that a user can set their password to blank, which is not good.
It does seems to error out for any other password that does not meet our Domain password complexity.
If I figure out a solution, I'll upload my code change.
-
-
IDG Tech News
-
9th July 2010, 11:22 PM #257
- Rep Power
- 0
Got an alternative
For the Select Case PwdType on reset_pass.asp
I added an If statement:
I changed it from:
Case 5
If (Not ISEmpty(Request.Form("NewPass"))) Then
NewPassword = Request.Form("NewPass")
'check for blank password
ResetPass()
Else
PWPromptUser()
End If
To:
Case 5
If (Not ISEmpty(Request.Form("NewPass"))) Then
NewPassword = Request.Form("NewPass")
'check for blank password
If NewPassword = "" Then
PWPromptUser()
Else
ResetPass()
End If
Else
PWPromptUser()
End If
It's probably not the cleanest way to do this, but it seems to be working.
I wish I knew how to program in ASP a little better, then I could create better fixes.
-
-
12th July 2010, 08:58 AM #258
- Rep Power
- 7
i've modified ours quite a bit as dont want people to use the word password, so you may gave to take that bit out, but here you go:
reset/reset_pass.asp
Code:
JavaScriptHeader = "function formValidation(form)" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "{" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "if(notpassword(form.NewPass))" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "{" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "if(minLength(form.NewPass)){" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "return true;" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "} else {" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "alert(""Your password must be at least 6 characters long"");" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "document.form.NewPass.focus();" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "}" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "} else {" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "alert(""You cannot use the word password as a new password"");" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "document.form.NewPass.focus();" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "}" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "return false;" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "}" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "function notEmpty(elem)" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "{" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "if(elem.value.length == 0){" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "return false;" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "} else {" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "return true;" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "}" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "}" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "function notpassword(elem)" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "{" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "if(elem.value.toLowerCase() == 'password'){" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "return false;" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "} else {" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "return true;" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "}" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "}" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "function minLength(elem)" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "{" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "if(elem.value.length > 5){" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "return true;" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "} else {" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "return false;" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "}" & vbNewLine
JavaScriptHeader = JavaScriptHeader & "}" & vbNewLine
-
-
15th July 2010, 12:02 PM #259 Is the latest version of this in the zip file in the first post?
-
-
15th July 2010, 01:41 PM #260 Nevermind, did a search on this thread for attachments.
-
-
10th April 2011, 07:02 PM #261
- Rep Power
- 0
Hi, Thanks for this simple and easy tool.. it works perfectly on test network.. I will deploy it on production environment this week. just wondering is there any way to reduce the question at registration page? I don't need three questions there
-
-
3rd May 2011, 09:19 AM #262 Hi,
Glad you like it and it works for you.
There is no way to reduce the number of questions without hacking a lot of code out I don't think.
Will consider it as a feature request for the next version.
Thanks.
Ben
-
Thanks to plexer from:
thomasdavid1 (27th June 2011)
-
27th June 2011, 06:34 PM #263
- Rep Power
- 0
Windows Server 2008 R2
Hi Guys,
Im looking for something like this, does it work on Windows Server 2008 R2?
Thanks - Tom
-
-
27th June 2011, 06:40 PM #264 Hi Tom,
Don't know if it's been tried on that, care to give it a whirl and let us know?
Ben
-
-
27th June 2011, 06:54 PM #265
- Rep Power
- 0
See if I can set it up on a virtual server tomorrow and give it a test.
-
-
28th June 2011, 01:32 PM #266
- Rep Power
- 0
Just a FYI,
Anyone wanting to use on 2008 server R2 it works fine.
If anyone can help with a custom gina for Windows 7 I would appreciate it, I need help with it so we can have the reset password option on the login screen.
Last edited by themaster0071; 28th June 2011 at 04:11 PM.
-
Thanks to themaster0071 from:
-
19th July 2011, 06:15 PM #267
- Rep Power
- 0
Password Reset Tool
Hi,
I have followed the process mentioned for setting the password reset option on the desktop for users. However, when i restart the system, the tool is not shown.
Can you please let me know what is that i have to do to make the tool visible always.
Thanks
-
-
25th July 2011, 12:28 PM #268
- Rep Power
- 7
did you have to do anything different on 2008? in process of migrating from 2003 to 2008 r2
-
-
27th July 2011, 04:57 PM #269
- Rep Power
- 0
The above mentioned issue is resolved. However, when a user is trying to reset his password, he gets the below error.
Error: User x has not been registered. Please check you entered the username correctly and try again. If you entered your username correctly then password reset is not possible.
Please contact an administrator.
I have tried reset the counters and resetting the user's questions.
Any help is appreciated.
-
-
15th November 2011, 12:20 PM #270
- Rep Power
- 7
'Active Directory Group whose passwords can be reset by resetGroup
usersGroup = "Student Group"
Can this have multi student groups listed in it?
As I have a Student group that has all the other student groups added to it but this does not work
-
SHARE: 
Similar Threads
-
By Rozzer in forum Windows
Replies: 21
Last Post: 30th January 2013, 10:01 AM
-
By russdev in forum Windows
Replies: 7
Last Post: 8th November 2011, 12:35 PM
-
By Jonny_sims in forum Windows
Replies: 10
Last Post: 26th September 2011, 10:12 PM
-
By FN-GM in forum Wireless Networks
Replies: 6
Last Post: 10th October 2007, 09:15 AM
-
By timbo343 in forum Scripts
Replies: 1
Last Post: 21st September 2007, 01:16 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules