Updated fdc.in (updated password change link to https://www.useribm.hu/passwordchange).
authorZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Thu, 14 Jul 2022 14:15:50 +0000 (16:15 +0200)
committerZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Thu, 14 Jul 2022 14:15:50 +0000 (16:15 +0200)
sources/fdc.in/c3d/postinstall/install-data/usr/local/bin/mailpwdexpiration.py

index 89578be328d8de2f92a40f46315908aaaf3a22a7..1fbccc9939df6bd41a7b963eec4239d7987c7c46 100755 (executable)
@@ -12,14 +12,14 @@ USERS_BASE='ou=people,dc=user,dc=hu'
 
 
 PWD_MAX_AGE = 365 * 24 * 60 * 60
-PWD_EXP_WARN_DAYS = [1, 3, 7]
+PWD_EXPIRING_DAYS = [1, 3, 7]
 PWD_EXPIRED_DAYS = [-1, -3, -7]
 
 PWD_WARNING_SUBJECT = 'Your password expires in {} days'
 PWD_WARNING_MESSAGE = '''Dear {},
 
 Your password will expire in {} days.
-Please visit https://passwordchange.useribm.hu and change it.
+Please visit https://www.useribm.hu/passwordchange and change it.
 
 Respectfully yours,
 Directory Server'''
@@ -28,7 +28,7 @@ PWD_ERROR_SUBJECT = 'Your password has expired'
 PWD_ERROR_MESSAGE = '''Dear {},
 
 Your password has expired.
-Please visit https://passwordchange.useribm.hu and change it.
+Please visit https://www.useribm.hu/passwordchange and change it.
 
 Respectfully yours,
 Directory Server'''
@@ -81,5 +81,5 @@ if __name__ == '__main__':
             rounded_expiration_days = int(expiration_days + 0.5)
             if rounded_expiration_days in PWD_EXPIRED_DAYS:
                 send_mail('ERROR', rounded_expiration_days, uid, email_address)
-            elif rounded_expiration_days in PWD_EXP_WARN_DAYS:
+            elif rounded_expiration_days in PWD_EXPIRING_DAYS:
                 send_mail('WARNING', rounded_expiration_days, uid, email_address)