["gcolasurdo"] in stead of just gcolasurdowhen I try to get the cn, mail or other LDAP key field.
First, an outline of my code's logic (based on the previous ColdFusion script):
- Loop over the relevant OUs (organization units in the LDAP)
- Query the LDAP
- If there is an expiration date and mail then...
- Find the expiration date and calculate the difference from today (script will run daily)
- If the daydiff is on a warning interval...
- If the OU is for the College of Nursing or everyone else, prepare personalized email text
- Then send an email with the details of the impending password expiration
- Set a timeout at some point so as to not choke the mail relay
- Log the results
- Should we do anything about already expired passwords (I'm sure the business reason was already set, but as the programmer, I kinda want to make sure)
Ok, here is the code I'm using:
No comments:
Post a Comment