WiP: extend support for UUID user ID as home dir#561
Draft
jonasbardino wants to merge 10 commits into
Draft
Conversation
…s a start. Bail out in create_user if UUID format is chosen and user doesn't have the corresponding unique_id field.
…th X509 and UUID format. Reuse constants a bit more.
jonasbardino
added a commit
that referenced
this pull request
May 29, 2026
…tantly expected e.g. during useradm operations like edit_user, delete_user, etc. and therefore difficult to do without when adding test coverage a.o. in #561. Introduce two more common DNs used across tests: Other User and No Such User. Polish a long comment with some typos and incomplete ending.
…nt of the added unit test coverage.
…plicity. Add unit tests for edit_user both in the default and UUID format setup to cover more of the ground needed for supporting the latter.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend the existing skeleton to support using UUID as the name of the user home dir with just symlinks to the X509 form in order to ease updating any of the X509 fields without renaming entire user home.
First step is to add unit test coverage of the relevant helpers to narrow down what works already and what is still missing.
Additional work is required if we also want e.g. the participation in VGrids to be independent of such X509 field updates.
NOTE: Integrates #562, and #563 to address some issues discovered during development of the new unit tests. We probably want to merge them and rebase here before merging this PR.