+ Post New Thread
Page 16 of 19 FirstFirst ... 61213141516171819 LastLast
Results 226 to 240 of 274
EduGeek Self Service Password Reset Thread, Self Service Password Reset in Projects:; Wish it was that simple, I gave that a try but it still will not record username. Even as my ...
  1. #226
    mthomas08's Avatar
    Join Date
    Jun 2008
    Posts
    1,488
    Thank Post
    117
    Thanked 143 Times in 126 Posts
    Rep Power
    52
    Wish it was that simple, I gave that a try but it still will not record username. Even as my self (admin access). Really not sure what to do next, does it take the actual %username% or would it take the display name or other information to get it?

  2. #227

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    12,972
    Thank Post
    587
    Thanked 1,496 Times in 1,342 Posts
    Rep Power
    398
    Do you have the authentication on the web site setup correctly as it needs that to get the username?

    Ben

  3. #228

    Join Date
    Jan 2010
    Posts
    4
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I'm having a bit of a problem implementing this. does anyone have an updated link of the screencasts? I just want to go over the video to make sure I've done everything right. Here my issue: I can register the user and even update the questions... but I have a problem when trying to reset the password. Most of the time it tells me that the username is not registered. Occasionally it will take me to the question screen then to the password screen but when I enter the new password it does not take no error just the new password doesn't work. I have edited the cred.ini with a username and password that have access to do this. The problem may be with the ADODB as I did not really understand how to do this.. I think I did it right but not sure. Anyways any help will be very much appreciated. Thanks!!!

  4. #229

    Join Date
    Jan 2010
    Posts
    4
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    OK so I opened up the data base and the username is not being recorded. The answers are but the username is left blank. Any ideas? If I type in the name manually in the database I can reset the password.

  5. #230

    Join Date
    Jan 2010
    Posts
    4
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    ok so I got the database entering the username by unchecking the anonymous acess... Duh! Also the reseting password works the only issue I have now is with the Admin pages. I have a group called admingroup and have added my account to that group but I get a "you are not autherized to access this service" I can however access it on the DC by going to HttP://localserver/admin/index.asp

  6. #231

    Join Date
    Jan 2010
    Location
    MidWest
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Who is using this SSPR in production?

    Our department has been researching various password reset solutions and I'd like to test this one. My supervisor reviewed this forum and asked me to find a University/College that is larger than we are that has implemented this solution. We have a full time equivelent of 2,400.

    Has anyone coded this to work with SQL? I'm nervous about using an Access database for anything that is going to contain identifying information.

    Thanks

  7. #232

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    12,972
    Thank Post
    587
    Thanked 1,496 Times in 1,342 Posts
    Rep Power
    398
    Quote Originally Posted by elearngeek View Post
    ok so I got the database entering the username by unchecking the anonymous acess... Duh! Also the reseting password works the only issue I have now is with the Admin pages. I have a group called admingroup and have added my account to that group but I get a "you are not autherized to access this service" I can however access it on the DC by going to HttP://localserver/admin/index.asp
    Is that admingroup named the same as the one you have specified in the config file?

    Ben

  8. #233

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    12,972
    Thank Post
    587
    Thanked 1,496 Times in 1,342 Posts
    Rep Power
    398
    Quote Originally Posted by 1of2Techs View Post
    Our department has been researching various password reset solutions and I'd like to test this one. My supervisor reviewed this forum and asked me to find a University/College that is larger than we are that has implemented this solution. We have a full time equivelent of 2,400.

    Has anyone coded this to work with SQL? I'm nervous about using an Access database for anything that is going to contain identifying information.

    Thanks
    Hi,

    If you see the announcement about version 3 then this is what will happen allthough I don't have a timescale as of yet.

    Thanks.

    Ben

  9. #234

    Join Date
    Jan 2010
    Posts
    62
    Thank Post
    7
    Thanked 5 Times in 5 Posts
    Rep Power
    9
    Quote Originally Posted by Irazmus View Post
    You've already tried the only ideas I currently have for unlocking an account from asp. However I find it hard to believe that Microsoft would prevent/omit unlocking accounts via vb so I'm sure there must be a way of doing it. I'll see what I can find over the next few days and hopefully run some tests next week.

    Only just seen your script today so have been playing around with it. Have problems with the unlock accounting as well, just can't get it to work.
    I can unlock accounts via a vbs script, but can't seem to unlock account via .asp, even using the same commands

    v.annoying!

  10. #235

    Join Date
    Jan 2010
    Posts
    62
    Thank Post
    7
    Thanked 5 Times in 5 Posts
    Rep Power
    9
    woo! can now unlock accounts

  11. #236

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    12,972
    Thank Post
    587
    Thanked 1,496 Times in 1,342 Posts
    Rep Power
    398
    Quote Originally Posted by zbjsy View Post
    woo! can now unlock accounts
    Using what method?

    Thanks.

    Ben

  12. #237

    Join Date
    Jan 2010
    Posts
    62
    Thank Post
    7
    Thanked 5 Times in 5 Posts
    Rep Power
    9
    here you go, change your resetpass function to this, and change value NetBiosName

    Code:
    Function ResetPass
    'Begin Password Reset Code
    Dim usr, oUser, oFlags
    
    Err.Clear
    'Connect to Active Directory, reset and expire password
    Set objLogon = Server.CreateObject("LoginAdmin.ImpersonateUser")
    objLogon.Logon ImpersonateUser, ImpersonateUserPass, FQDN
    
    'START OF CODE FOR LDAP
    
    ' Constants for the NameTranslate object.
    
    Const ADS_NAME_INITTYPE_GC = 3
    Const ADS_NAME_TYPE_NT4 = 3
    Const ADS_NAME_TYPE_1779 = 1
    
    ' Specify the NetBIOS name of the domain and the NT name of the user, Change NetBiosName to your NetBiosName.
    strNTName = "NetBiosName" & "\" & strusername
    
    ' Use the NameTranslate object to convert the NT user name to the
    ' Distinguished Name required for the LDAP provider.
    Set objTrans = CreateObject("NameTranslate")
    
    ' Initialize NameTranslate by locating the Global Catalog.
    objTrans.Init ADS_NAME_INITTYPE_GC, ""
    ' Use the Set method to specify the NT format of the object name.
    objTrans.Set ADS_NAME_TYPE_NT4, strNTName
    
    ' Use the Get method to retrieve the RPC 1779 Distinguished Name.
    strUserDN = objTrans.Get(ADS_NAME_TYPE_1779)
    
    
    'END OF CODE FOR LDAP to replace Getobject("WinNt:
    
    'Set oUser = GetObject("WinNT://" & FQDN & "/" & strusername & ",user")
    ' Bind to the user object in Active Directory with the LDAP provider.
    Set oUser = GetObject("LDAP://" & strUserDN)
    If Err.number <> 0 Then
    	PageContent(0) = "Error: Unable to bind to container"
    Else
    'Commented out the commands below as they were causing conflicts
    'oFlags = oUser.Get("UserFlags")
    'PageContent(0) = "Resetting password for <b>" & strusername & "</b> ...<br />"
    On Error Resume Next
    oUser.SetPassword( NewPassword )
    	If (Err.number <> 0) Then
            If AdminName = "" Then
    		PageContent(0) = PageContent(0) & "An unexpected error occurred in the execution of this page<br />Please report the following information to an "
            AdminName = "Administrator"
            Else
            PageContent(0) = PageContent(0) & "An unexpected error occurred in the execution of this page<br />Please report the following information to "
            End If
    		Select Case AdminLinkType
    			Case 1 'No link
    			PageContent(0) = PageContent(0) & AdminName
    			Case 2 'Mailto:
    			PageContent(0) = PageContent(0) & "<a href=""mailto:" & AdminLinkEmail & """>" & AdminName & "</a>"
    			Case 3 'Web Link
    			PageContent(0) = PageContent(0) & "<a href=""http://" & AdminLinkWeb & """>" & AdminName & "</a>"
    			Case Else
    			PageContent(0) = PageContent(0) & AdminName
    		End Select
    		PageContent(0) = PageContent(0) & "<br /><b>Page Error Object</b><br />Error Number: " & Err.Number & "<br />Error Description: " & Err.Description & "<br />Source: " & Err.Source & "<br />LineNumber: " & Err.HelpContext & "</h3>"
    	Else
    	'oUser.Put "PasswordExpired", CLng(1)
    	'Commented out the above command, as it did not work with LDAP, the below command does.  It forces the user to the Change their password the next time they logon
    
    	oUser.LockoutTime = 0
    	oUser.SetInfo
    	oUser.Put "PwdLastSet", 0
    	oUser.SetInfo
    	oUser.Put "userAccountControl", 544
    	oUser.SetInfo
    
    	Set oUser = Nothing
    
    	PageContent(0) = "Resetting password for <b>" & strusername & "</b> ...<br />"
    	PageContent(0) = PageContent(0) & "Your password is now <b>" & NewPassword & "</b>"
    		If PwdType <> 5 Then
    			PageContent(0) = PageContent(0) & " please logon and change this."
    		End If
    	PageContent(0) = PageContent(0) & "<br /><br />Press Ctrl-Alt-Del and Log Off..."
    
    	'Create an ADO recordset object
    	Set rsRegisterUser = Server.CreateObject("ADODB.Recordset")
    	'Initialise the strSQL variable with an SQL statement to query the database
    	If removeOnReset Then
    		'Remove user from SSPR database
    		strSQL = "DELETE FROM tblmain WHERE username='" & strusername & "';"
    	Else
    		'Reset failed reset counter
    		strSQL = "UPDATE tblmain SET counter='0' WHERE username='" & strusername & "';"
    	End If
    	'rsRegisterUser.Open strSQL, adoCon
    	adoCon.Execute strSQL
    
    	'rsRegisterUser.Close
    	Set rsRegisterUser = Nothing
    	Set adoCon = Nothing
    
    	End If
    End If

  13. Thanks to zbjsy from:

    plexer (29th January 2010)

  14. #238

    Join Date
    Jan 2010
    Posts
    62
    Thank Post
    7
    Thanked 5 Times in 5 Posts
    Rep Power
    9
    Code:
    	oUser.LockoutTime = 0
    	oUser.SetInfo
    	oUser.Put "PwdLastSet", 0
    	oUser.SetInfo
    	oUser.Put "userAccountControl", 544
    	oUser.SetInfo
    just to expand, I found that if I didn't have "oUser.SetInfo" after each setting it wouldn't always unlock, strange I know, and only works using an ldap connection.

  15. #239

    Join Date
    Jan 2010
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Stupid Question

    I've tried downloading every attached version of this app that I've seen and they all show up as corrupt when I try to open them, regardless of what program I use. I there another location where the latest version of the files is store that I can access them?

    The program sounds great from what I've read and I'm ancious to try it. Thanks for the time you've invested in it.

  16. #240

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    12,972
    Thank Post
    587
    Thanked 1,496 Times in 1,342 Posts
    Rep Power
    398
    Have you tried the google upload?

SHARE:
+ Post New Thread

Similar Threads

  1. Password Reset form for ICT staff
    By Rozzer in forum Windows
    Replies: 21
    Last Post: 30th January 2013, 10:01 AM
  2. apc powerchute buisness ed reset password
    By russdev in forum Windows
    Replies: 7
    Last Post: 8th November 2011, 12:35 PM
  3. bulk password reset
    By Jonny_sims in forum Windows
    Replies: 10
    Last Post: 26th September 2011, 10:12 PM
  4. Cisco Switch Password Reset
    By FN-GM in forum Wireless Networks
    Replies: 6
    Last Post: 10th October 2007, 09:15 AM
  5. Need to reset a local account's password
    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
  •