Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-395

User "expired" column not actually queried for MySQL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 0.9.14
    • None

    Description

      Though the expired column of the guacamole_user table is correctly mapped for PostgreSQL:

          <!-- Result mapper for user objects -->
          <resultMap id="UserResultMap" type="org.apache.guacamole.auth.jdbc.user.UserModel" >
              ...
              <result column="disabled"            property="disabled"           jdbcType="BOOLEAN"/>
              <result column="expired"             property="expired"            jdbcType="BOOLEAN"/>
              <result column="access_window_start" property="accessWindowStart"  jdbcType="TIME"/>
              ...
          </resultMap>
      

      it is not mapped at all for MySQL:

          <!-- Result mapper for user objects -->
          <resultMap id="UserResultMap" type="org.apache.guacamole.auth.jdbc.user.UserModel" >
              ...
              <result column="disabled"            property="disabled"           jdbcType="BOOLEAN"/>
              <result column="access_window_start" property="accessWindowStart"  jdbcType="TIME"/>
              ...
          </resultMap>
      

      This column controls manual password expiration, which is thus broken for MySQL and MariaDB databases.

      See also: http://guacamole.incubator.apache.org/doc/gug/jdbc-auth.html#jdbc-auth-schema-users

      Attachments

        Activity

          People

            mjumper Mike Jumper
            mjumper Mike Jumper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: