Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding local user managment #39

Closed
wants to merge 1 commit into from

Conversation

mettke
Copy link
Contributor

@mettke mettke commented Apr 7, 2019

  • keys-sync user becomes a local and not an ldap user
  • local users are allowed to access site without 403
  • LDAP can be dis/enabled in the configuration
  • Added section to delete local user
  • Added section to add local users
  • Added graceful handling of deleted users in logs, nodes, ...

There are tables containing NOT NULL fields for actors
like the log table, which contains who did something.
When we remove a user, we don't want to remove that log
as the entity it is for is still alive. We instead want
to remove the actor (or set it to null) so that the
database stays consistent. The migrations in this patch
recreate every table which has an actor to allow NULL
fields. It also corrects a few constraints to set those
values to NULL on delete.

Resolves: #21
Resolves: #25
Resolves: #28

@mettke mettke force-pushed the local_user_managment branch 3 times, most recently from 4c00db0 to 61434ce Compare April 8, 2019 14:15
* keys-sync user becomes a local and not an ldap user
* local users are allowed to access site without 403
* LDAP can be dis/enabled in the configuration
* Added section to delete local user
* Added section to add local users
* Added graceful handling of deleted users in logs, nodes, ...

There are tables containing NOT NULL fields for actors
like the log table, which contains who did something.
When we remove a user, we don't want to remove that log
as the entity it is for is still alive. We instead want
to remove the actor (or set it to null) so that the
datbase stays consitent. The migrations in this patch
recreate every table which has an actor to allow NULL
fields. It also corrects a few constraints to set those
values to NULL on delete.
@jcnventura
Copy link

This is such a useful feature. Please merge this.

@jcnventura
Copy link

@mettke Maybe in the meantime you could make the following changes:

  1. Set ldap/enabled to 1, so that the default config with this patch is not altered.
  2. Change the README.md to mark the LDAP requirements as (optional), and to document the local user installation and usage.

@jcnventura
Copy link

Ah, and please sign your commit, or Opera won't be able to merge it.

@mettke mettke closed this May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants