
SPAM AND SECURITY
Easy way to change HTTP password
Roland Houle 08.08.2001
Rating: -3.10- (out of 5)




|
Our users are constantly forgetting their HTTP passwords, which creates calls to our Help Desk. Although users can simply go into the NAB and edit their own person document, most of them are not aware of this and the Help Desk needs to walk them through the process on the phone. To help them with these calls, we added an action to our mail template which automates the process. Now, when the Help Desk does get this call, it is only a matter of seconds for the user to fix the issue themselves, and it is simple enough that an end user will remember the process if the problem occurs again.
Code
Action Name: Reset HTTP Password
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim NAB As New NotesDatabase("","")
Dim PerView As NotesView
Dim PerDoc As NotesDocument
Dim UIWork As New NotesUIWorkspace
Dim UIDoc As NotesUIDocument
Dim Server As String
Set DB=session.currentdatabase
Server = db.Server
flag = NAB.OpenByReplicaID( Server, "8025626E004232EE" ) 'specify the replica ID of your NAB
Set PerView = NAB.GetView("PeoplebyFirst")
Set PerDoc = PerView.GetDocumentByKey(session.commonusername, True)
If Not (PerDoc Is Nothing) Then
NewPass = Inputbox$ ( "Please enter your new HTTP password" , "Change HTTP Password")
If NewPass = "" Then
Msgbox "Action canceled by user."
Else
Set UIDoc = UIWork.EditDocument( True, PerDoc)
Call UIDoc.FieldSetText( "HTTPPassword", NewPass )
Call UIDoc.Refresh
Call UIDoc.Save
Call UIDoc.Close
If Server = "" Then
Msgbox "Your HTTP password has been
successfully changed. Since you are working locally, this change will
take effect within minutes of you replicating your local Corporate Directory to your home mail server, but can take up to two hours after that to take effect on the data servers. Please contact the Help Desk with any questions."
Else
Msgbox "Your HTTP password has been successfully changed. This change will take effect within minutes on
your home mail server, but can take up to two hours to take effect on the
data servers. Please contact the Help Desk with any questions."
End If
End If
End If
Print "Done"
End Sub
 |

|
|
 |
|
 |