Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-9861

Password expiration value is calculated wrong when ldap_expirationtime2unix() returns 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.1
    • 1.6.5, 1.7.2, 1.8, 1.9
    • Authentication
    • None
    • Any
    • MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • MOODLE_18_STABLE

      Password expiration value is calculated wrong when ldap_expirationtime2unix() returns 0. This 0 value means 'password doesn't expire' in Active Directory for example (see MDL-4687 for a patch that adds password expiration support for Active Directory), but the current code substracts $now from 0 and gets a negative value instead.

      The attached patches (for 1.8 and 1.9) fix this issue.

      Saludos. Iñaki.

            skodak Petr Skoda
            iarenaza Iñaki Arenaza
            Nobody Nobody
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.