Configure user disable mechanism in reva.

This PR adds configuration parameters to the auth-basic and users
services that passes them through to reva. These configuration parameters
are all related to the new user disable mechanism that @Excds added to
the graph API, and that I added to reva.
This commit is contained in:
Daniël Franke
2023-03-08 13:18:54 +01:00
committed by Ralf Haferkamp
parent b57504696b
commit 2f465fb5eb
6 changed files with 95 additions and 77 deletions
+3
View File
@@ -78,6 +78,9 @@ func ldapConfigFromString(cfg config.LDAPDriver) map[string]interface{} {
"group_filter": cfg.GroupFilter,
"user_objectclass": cfg.UserObjectClass,
"group_objectclass": cfg.GroupObjectClass,
"user_disable_mechanism": cfg.DisableUserMechanism,
"user_enabled_property": cfg.UserSchema.Enabled,
"group_local_disabled_dn": cfg.LdapDisabledUsersGroupDN,
"idp": cfg.IDP,
"user_schema": map[string]interface{}{
"id": cfg.UserSchema.ID,