Home > Domino Tips > Developer > QuickTips > Options for changing passwords
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

QUICKTIPS

Options for changing passwords


Hemang Kapadia
07.04.2005
Rating: -4.20- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


A client of ours required a change Internet password feature on the Portal so that users can change their passwords whenever they want. So I made a change password form where the user can enter his old and new password and wrote an agent which checks the current logged in user and changes "HTTPPassword" field in the users document of names.nsf with the new password on webquerysave of the form.

This option, the code for which is below, works fine. But later I got another simpler way to do the same thing -- you can just redirect the user to "http://servername:port/names.nsf?changepassword" and use the default Notes feature to change the password. By using custom login forms and domcfg.nsf, you will be able to change the look and feel of the form as well.

Code

Web Query Save:

Sub Initialize

 On Error Goto hell
 Dim session As New NotesSession
 Dim Empdoc As NotesDocument
 Dim namesdb As New NotesDatabase
("","names.nsf")
 Dim namesview As NotesView
 Dim Empname As New NotesName
(session.EffectiveUserName)
 Dim doc As NotesDocument
 Set db =session.CurrentDatabase
 Set doc=session.DocumentContext
 Set namesview=namesdb.
GetView("($VIMPeople)")
 If Not namesview Is Nothing Then
  Set EmpDoc=namesview.
GetDocumentByKey(Empname.Abbreviated)
  If Not empdoc Is Nothing Then
   empdoc.HTTPPassword=doc.NewPass(0)
   empdoc.SaveOptions="1"
   Call empdoc.ComputeWithForm(True,True)
   Call empdoc.save(True,True)  
   
  End If
 End If
 Exit Sub
hell: Print Error() & "..............." & Erl()
 Exit Sub
End Sub

Do you have comments on this tip? Let us know.

This tip was submitted to the SearchDomino.com tip exchange by member Hemang Kapadia. Please let others know how useful it is via the rating scale below. Do you have a useful Notes/Domino tip or code to share? Submit it to our bimonthly tip contest and you could win a prize and a spot in our Hall of Fame.

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
QuickTips
A bevy of Notes/Domino development tips
How to protect your Lotus Notes application design
Merging views
Stop an agent without shutting down the Amgr task
Collapsing outlines
How to make Notes view icons run code
Find all databases associated with a template
Verifying user's date setting and time zone on local PC
Load design for a single database
Importing a CSV file into view

Lotus Notes Domino Password Management
An introduction to Lotus Notes password options and essentials
Secure Lotus Notes 8 with the Internet password lockout feature
Lotus Notes Domino password management tips
Cracked users' HTTP passwords still a threat on many Lotus Notes R6 and R7 domains
Multiple new Sober variants spy on passwords
Resetting a Lotus Notes password
FAQ: Lotus Notes Domino password issues
Hashing out stronger password authentication
Change default password before sending to user
Required change interval in password expiration settings

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts