In v257 userdbctl gained support for filtering user records with fuzzy matching and some other parameters. It was done on the client side only. This PR adds server-side matching, by exendting the generic userdb varlink api. The api is generic any may have many other implementors, hence care is taken to fallback to exclusively client side filtering in case the service does not support the new parameters. In fact I even opted to not actually implement server-side filtering in any services but systemd-userdbd.service, because it's probably not too much an optimization in relevant services (we might want to revisit this later). By implementing it in userdbd the primary entrypoint for userdb is however covered: the multiplexer interface which provides a single interface for the multitude of backends. Or in other words: the multiplexer itself supports server-side filtering even if its own backends don't, and will hide this neatly away. One nice side effect from not implementing server side filtering for all our backends is that the fallback codepaths are comprehensively tested. Note that this adds some unit tests but not new integration test for all this, as the filtering tests for userdbctl already existed before, we just move their implementation from the client to the server side.
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list, join our IRC channel #systemd on libera.chat or Matrix channel
Stable branches with backported patches are available in the stable repo.
We have a security bug bounty program sponsored by the Sovereign Tech Fund hosted on YesWeHack
Repositories with distribution packages built from git main are available on OBS