Skip to content

v1.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Oct 20:39
66a0d01

Added

  • Host writes: HostAdd (random one-time password, force),
    HostAddWithPassword, HostMod, HostDelete (updatedns) and
    HostDisable, with …Context twins; Host.RandomPassword
  • StageUserAddWithPassword sets the initial password on stageuser_add
    (#14)
  • WithTruncationErrors(): UserFind, GroupFind, HostFind,
    StageUserFind, SubIDFind, FetchOTPTokens, HBACRuleFind and
    SudoRuleFind return ErrTruncated with the entries they got; the
    default stays silent as in v1.0 (#15)
  • Examples for WithHTTPClient (timing the requests) and HostAdd
  • Kerberos documented: SPNEGO on the first call, then the ipa_session
    cookie; LoginFromCCache takes the path of a file cache (not KCM:; strip
    a FILE: prefix from KRB5CCNAME); after StickySession(false) every call
    negotiates SPNEGO
  • ipatest: Server.GrantPrivilege(uid, privilege) gives a user one FreeIPA
    privilege, for tests of delegated rights (#18)

Changed

  • ipatest: Calls() now redacts passwords (userpassword and the like)
    in the recorded options, so tests that asserted the raw values must
    compare "REDACTED" (the server state keeps the password)
  • ipatest: password changes by the user now enforce the user's effective
    policy (group policies by priority, character classes, history) and the
    minimum lifetime. A second self-change within MinLife (1 h by default)
    is refused; tests that change a password twice should call SetPwPolicy
    with MinLife 0 (users seeded with AddUser are exempt for their first
    change) (#19, Q180 to Q183)
  • ipatest: a malformed krbpasswordexpiration is refused (3008
    ConversionError, as FreeIPA) instead of meaning "never expires" (Q184)
  • ipatest: hbacrule_find, sudorule_find, subid_find and
    otptoken_find honour sizelimit (Q165 to Q167)
  • ipatest: a caller outside admins who holds no granted privilege gets
    2100 ACIError (ErrACI) on user_add, user_mod (other users),
    user_del, stageuser_add, group_add/_mod/_del,
    host_add/_mod/_del, hostgroup_add/_del, service_add/_del,
    hbacrule_add/_enable/_disable/_del, sudorule_add/_del, dnszone_add and
    automember_add, as FreeIPA 4.13.4 does on every release. The message
    follows SetVersion: the API permission text, or the directory's ACI text
    from 4.10 up to 4.13.3. user_mod on the caller's own entry stays allowed
    for self-service attributes. The checks of Q24, Q32, Q95 and Q122 also pass
    with the matching granted privilege. Tests that wrote as a plain user must
    use admin or GrantPrivilege (Q168 to Q174). Not modelled: the 4001 a
    plain user gets from dnsrecord_add (Q171) and 4.13.4 refusing an own
    passkey add (Q172)
  • ipatest: host_add, host_mod, host_disable and host_del with
    updatedns (which removes the host's A and AAAA records, Q158); macaddress
    comes back upper-case (Q156); host_disable follows the real server's
    keytab rules (Q157)
  • ipatest: user_add and stageuser_add with userpassword keep it,
    expired; stageuser_activate carries it over (Q160, #16); user_mod
    accepts setattr krbPasswordExpiration to lift the expiry (#17)