freeipa / freeipa-webui

FreeIPA Web UI
GNU General Public License v3.0
24 stars 12 forks source link

[User details] Save button is not enabled when changing time in datetime fields #452

Closed miskopo closed 4 months ago

miskopo commented 4 months ago

In User details, when modifying just the time part of the datetime fields (e.g. Kerberos principal expiration (UTC)), the Save button doesn't enable.

miskopo commented 4 months ago

I believe the issue related to setting time in krb5 is related to this one. Basically, each request to change sends the time set to hard-coded value, but I was unable to figure out where this value is coming from.

  1. Original value image
  2. Change to image actual request:
    {
    "method": "user_mod",
    "params": [
    [
      "armadillo"
    ],
    {
      "version": "2.251",
      "krbprincipalexpiration": "20240716220016Z"
    }
    ]
    }

    which corresponds to time 00:00, however the date is skewed by 1 (the value is correct after the reload)

  3. Change to image actual request:
    {
    "method": "user_mod",
    "params": [
    [
      "armadillo"
    ],
    {
      "version": "2.251",
      "krbprincipalexpiration": "20240719220016Z"
    }
    ]
    }

    again, date moved by one day and time set to 00:00

My investigation led me to several possible culprits.

miskopo commented 4 months ago

Fixed by https://github.com/freeipa/freeipa-webui/pull/464