Adapt LDAP scripts to honour expiration dates