1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +02:00
Files
systemd/docs
Lennart Poettering 170d7d49f5 user-record: also support "aliases" in the "status" section of user records
Some user record providers might want to implement case-insensitive user
record matching, or other forms of non-normalized matching. So far
uderdb didn't allow that, because client's typically revalidate the
returned user records against the search keys (at least our clients do)
– they check if the search user name is actually part of the user record
and its aliases.

In order to support such lookups we thus need to allow the looup keys to
be part of the user record, but also not be persisted in it, because
the number of casings/spellings of a username might be ridiculously
high.

A nice way out is to allow "aliases" not only in the main part of the
record, but also in the "status" part, that contains information
dynamically determined at query time. We can insert a second "aliases"
field there, which the parser will then merge with the primary "aliases"
field, but the existing rules around "status" ensure tha the data is
never persisted.

Follow-up: e2e1f38f5a
2025-06-23 22:26:24 +01:00
..
2025-02-17 19:49:32 +00:00
2019-12-11 17:04:20 +01:00
2025-04-07 17:00:35 +09:00
2024-03-27 07:11:54 +01:00
2024-03-27 07:11:55 +01:00
2024-12-28 12:24:42 +09:00
2024-10-17 00:49:59 +09:00
2019-12-11 17:04:20 +01:00
2025-05-14 18:06:04 +02:00
2025-04-27 10:36:12 +09:00
2025-05-07 00:49:49 +09:00
2024-03-27 07:12:00 +01:00
2024-03-27 07:12:01 +01:00
2024-03-27 07:12:01 +01:00
2025-06-02 11:19:12 +02:00
2024-03-27 07:12:04 +01:00
2024-03-15 04:04:01 +09:00