How can I force users to change passwords after importing?
You are importing users through the Importer (Web-UI oder command line).
You want to make sure the users have to change it’s password when logging in the next time.
Just accept the password the Importer can generate. They are randomly generated and can not be guessed. Check the documentation to enable the password generation.
Use a Python hook to do this.
Note: As this is Python program code you should be familiar to Python. At least: You should know what you are doing!
Download the attached file and uncompress it with
gzip -d to the folder
If done ALL imported users have to change their password at the next login.
pwdChangeNextLogin.py.gz (1011 Bytes)