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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.5, 1.7.2, 1.8, 1.9
    • Fix Version/s: 1.8.1
    • Component/s: Authentication
    • Labels:
      None
    • Environment:
      Any
    • Affected Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              skodak Petr Skoda
              Reporter:
              iarenaza Iñaki Arenaza
              Tester:
              Nobody
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jun/07