LDAP support continued (with missing packages & tests) #805
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.
This is picking up the work from @ajs124 in #684.
The main difference to the previous PR is that I started writing tests for it (while I was trying to figure out if it is working). That work required adding the missing perl packages which I'm also adding to NixPkgs in NixOS/nixpkgs#97673. For the meantime they should probably be kept in here until NixOS 21.03 is released.
As written in the original PR this still has the hard coded
hydra_
prefix for all the roles that are currently supported by hydra. IMO extending that is out of scope for an initial implementation. If someone really needs different names and/or has multiple hydra setups with different permissions for the same person they can still have a different OU's in their LDAP and filter accordingly.