How to set new internet passwords for existing users

Hello forum,

a customer needs to set internet password for all users. Some users have one, but they do not know it, some have none set in the persondocument.

I found this article: https://support.hcl-software.com/csm?id=kb_article&sysparm_article=KB0024508

I need the agent to use the first option and after that using the second option.

Has anyone programmed such an agent?

Kind regards

Hubertus

Hello Hubertus,

Good Day!

Please check if the information provided in the following article is helpful:

Changing HTTP passwords for several users via an agent : https://support.hcl-software.com/csm?id=kb_article&sysparm_article=KB0088854

Best Regards,
Suraj

Hello Suraj,

works great!. Many thanks for the quick answer.

By the way: If the user has then changed their internet password, how long will the old password remain valid?

Hi @Hubertus Dicke

By default, Domino allows the old Internet password to be used within 48 hours of the password change.

The time period allowed for old passwords can be changed with the NOTES.INI parameter below.

HTTP_PWD_CHANGE_CACHE_HOURS

You can verify if you have configured this INI.

Add this script as an action button in any database or domino directory itself or use it as an agent with allow restricted operations

ServerName="yor server name"
defaultpassword="abcd1234"
changeallpasswords=false or true // based on your reqmt

dim session as new notessession
dim db as new notesdatabase("","")

if not db.open(ServerName,"names.nsf") then
msgbox "Could not open Domino Directory"
exit sub
End if

dim pwchangedate as new notesdatetime(now)
dim view as notesview
set view=db.getview("People")
dim doc as notesdocument
set doc=view.getfirstdocument

while not doc is nothing
if doc.httppassword(0)="" or changeallpasswords then
doc.httppassword=session.Hashpassword(defaultpassword)
Call doc.replaceItemvalue("httppasswordchangedate",pwchangedate) // required for V10 and above
Call doc.save(False,False)
end if
set doc=view.getnextdocument(doc)
wend

When done, take action to force password change as per the article referenced in your post

Hello,

I will also test this agent.

Many thanks.

Hubertus