graph: Allow disabling user by adding to local group

* A new config option for disabling users with the options "none", "attribute" and "group".
* When set to "none", there will be no enabledAttribute returned in user info and trying to change enabledAttribute will return an error
* Disable/enable group name DN as config parameter
* Adding/removing users to specified group on user update
* Changing log level for service initialization failure to error
* Adding helper methods to check if user is enabled/disabled + tests

Fixes #5554
This commit is contained in:
Daniel Swärd
2023-03-06 09:31:23 +01:00
parent e3d9b810bd
commit ca746106d8
6 changed files with 867 additions and 48 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ func Server(cfg *config.Config) *cli.Command {
)
if err != nil {
logger.Info().Err(err).Str("transport", "http").Msg("Failed to initialize server")
logger.Error().Err(err).Str("transport", "http").Msg("Failed to initialize server")
return err
}