Tip

Change Domino Password not using Domino Administrator

This tip will allow any Notes Registered User in the Domino Address Book to change his/her password.

 Dim s As New NotesSession Dim db As NotesDatabase Dim Server As Variant Dim a,b,Servername As String Set db=s.CurrentDatabase 'GetServer Server=db.server a=Strright(Strleft(Cstr(db.Server),"/"),"=") b=Strrightback(Cstr(db.Server),"=") ServerName=a+"/"+b Set notesDatabase = New NotesDatabase( ServerName, "names.nsf" ) Dim view As NotesView Set view=notesdatabase.GetView("($Users)") Dim doc As NotesDocument Set doc=s.documentcontext decrypted=Evaluate("@Password(""" + doc.OldPassword(0)+""")") Dim nabdoc As NotesDocument Set nabdoc=view.GetDocumentbyKey(doc.UserName(0),True) If Not(nabdoc Is Nothing) Then If (nabdoc.HTTPPassword(0)=decrypted(0)) Then decryptednewpass=Evaluate("@Password("""+ doc.NewPassword(0) + """)") If doc.NewPassword(0)=doc.ConfirmPassword(0) Then nabdoc.HTTPPassword=decryptednewpass(0) Call nabdoc.Save(True,False) Else Print "&tlH3>Wrong confirm password&tl/H3>" Print |&tlDIV ALIGN=center>&tlA onClick="history.back() return false;" HREF="">Back&tl/A>&tl/DIV>| Exit Sub End If Else Print "&tlH3>Your old password is incorrect.&tl/H3>" Print |&tlDIV ALIGN=center>&tlA onClick="history.back() return false;" HREF="">Back&tl/A>&tl/DIV>| Exit Sub End If Else Print "&tlH3>Username not found in the Server Address Book&tl/H3>" Exit Sub End If Print "&tlH3>Successfully updated the password of &tlBR>"+doc.UserName(0)+"&tl/H3>" End Sub

This was first published in January 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

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.