Start a new topic

Possible to notify users of expiring passwords?

sethc @ Wed Nov 12 10:44:44 EET 2014
Is it possible to setup a CrushTask or something similar to email users who will have their passwords expire in X days? That way they can change their passwords before it expires?

spinkb @ Wed Nov 12 15:03:22 EET 2014
This can be done, and fully customized too, but... you must have an enterprise level license to do this. The main reason is that in order to do "conditional" logic, you need an enterprise license. The regular license can do jumping to things, but it can't do comparisons of value 1 versus value 2 to make the decision.
Just do document how this would work...need a new job item in the jobs tab.
Step1: UserList
Branched from the UserList task item:
Step1: UserVariable, expire_millis = {parse_start:MM/dd/yyyy hh:mm:ss aa}{expire_password_when}{parse_end}
Step2: Jump conditional, {expire_millis} greater than {add_start:-86400000}{millis}{add_end}
Step2: true, send email, false, do nothing

So we firstling a variable from the user object loaded in step 1, and parse out its date format into milliseconds. Then we do a comparison with that value, versus the current milliseconds, minus 1 days worth. If the expire time is sooner than 1 day ago, we send an email.
Thanks,
Ben
sethc @ Fri Nov 14 09:24:54 EET 2014
Thanks for the example but unfortunately we are having issues getting it to work. We do have a enterprise license but it seems that it is not it is not parsing the expired password date. I couldn't get the job to add the time at all. Is there any documentation on how to use these functions because it seems like I have the syntax wrong?

11/14/2014 10:19:42 AM:tasks.UserVariableTask.Set Expired Password Date variable:Starting...
11/14/2014 10:19:42 AM:tasks.UserVariableTask.Set Expired Password Date variable:expire_millis={parse_start:MM/dd/yyyy hh:mm:ss aa}10/07/2014 02:10:27 PM{parse_end}
11/14/2014 10:19:42 AM:tasks.JumpTask.Jump-Expired Password Date GT Today:Starting...
11/14/2014 10:19:42 AM:tasks.JumpTask.Jump-Expired Password Date GT Today:Found 0 matching the condition {expire_millis} greater than {add_start:-86400000}{millis}{add_end}
Solyom84 @ Fri Nov 14 14:48:57 EET 2014
Hi, Sethc.

We added a wiki page as well, that explains what need to do, you can find it at:
http://www.crushftp.com/crush7wiki/Wiki.jsp?page=CrushTaskExample8

Thanks,
Arpad.
sethc @ Fri Nov 14 15:54:22 EET 2014
I will give it another shot once that version can go through our Change Management process.
Login to post a comment