fix expiry check for adLDAP version FS#2759