Force user to change the password on next logon? How, using script?

Hi,

First of all I don’t know if a put the post in right place. If not please escuse me, I am new here, and also my knoledge in Lotus Domino/Notes are limited.

I developed a small tool in c++ which does a HTTP-password reset for a given user.

I am doing this by opening the names.nsf database, and then the $VIMPeople view in this. In this view, I search for the user, and once is founded, I set the field “HTTPPassword” of this document with the new password.

Everything fine with this, but now the problem comes that I want to force also the user to change the password on next logon.

As I found some documentation, that this is possible using the Domino administration tools, I think and hope will be also possible to do it in an automated way (as in my case use the lcppn70.dll library).

My question is where, in which document, and which field name contains this?

Any suggestions and ideas are welcomed.

Many thanks,

M.

Subject: Force user to change the password on next logon? How, using script?

There is a field called HTTPPasswordForceChange.

Set this field to the text value “1”, and this should force the user to have to change their password on next login (once the index is updated for the Domino Directory).

Subject: RE: Force user to change the password on next logon? How, using script?

I set the field HTTPPasswordForceChange in user document to 1.But when I look in the DominoAdmin tool (user edit - administration tab) I can see that is not setted. (the passwrod which I set it, is there).

Also I market in administration tool this flag and when I open the user email page (mai/user.nsf) and login, is not asking to change the password (as suposed to ask).

Subject: RE: Force user to change the password on next logon? How, using script?

Hi Geoff,

Many thanks for your answer.

Is this field in the same user document, I use?

(names.nsf, view: $VIMPeople.id and founded user document)

Mihai

Subject: RE: Force user to change the password on next logon? How, using script?

Yes, same document (since it is a per user setting).

Subject: RE: Force user to change the password on next logon? How, using script?

Many thanks!Now a dummy question:

How I can check the password, and if will ask me to do a password change? Which page (.nsf) to open for try the login.

Sorry for this question, but as I said I am new with Lotus Notes/Domino. And my target is only to achieve this password reset task.