"""
expiry_date = '%d-09-30' % (datetime.date.today().year + 1)
+ exp_att = self._simple_map('loginExpirationTime')
+
+ # Go with the LDAP-set expiry date
+ if exp_att:
+ expiry_date = "%s-%s-%s" % (exp_att[:4], exp_att[4:6], exp_att[6:8])
# Faculty and staff get a long time
- if self.profile == 11 or self.profile == 14:
+ elif self.profile == 11 or self.profile == 14:
expiry_date = '%d-09-30' % (datetime.date.today().year + 8)
+ # Expire the visiting students Sept. 30th
+ elif self.affiliation == 'visitor':
+ expiry_date = '%d-09-30' % (datetime.date.today().year + 1)
return expiry_date
'lulLibraryBarcode', 'createTimestamp', 'lulAffiliation',
'lulStudentLevel', 'lulPrimaryAffiliation', 'cn', 'mail',
'givenName', 'sn', 'lulColleagueId', 'preferredLanguage',
- 'lulModifyTimestamp'
+ 'lulModifyTimestamp', 'loginExpirationTime'
]
if (ARGS.query_date):