WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

NetwareX Extender

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Netware Force Password Change Next Logon


Question:

I can change the password, but I also want it to prompt user at next login to change password.

Answer:

I'm not quite sure what you're asking for. Here's my interpretation. Please correct me if I'm mistaken. You are saying that you are using nwSetPassword() to forcibly reset the password for a user account other than your own, and that you want the user to be forced to change their password again on their own the next time that they login to NDS/eDir. Is this correct?

If so, then after calling nwSetPassword(), you also need to make calls to nwModifyObject() to change the value of the "Password Expiration Time" [SYN_TIME syntax] attribute on the user's object so that the expiration is set to be in the past, thus forcing a password change [via a grace login] the next time the user logs in again. Remember that the time must be in UTC, not local time, so you have to reverse your local timezone offset when cooking up a date & time value to set for this attribute.


Article ID:   W17080
File Created: 2007:07:03:14:28:12
Last Updated: 2007:07:03:14:28:12