Add basic config setting for LDAP education backend

require LDAP support for Education resources to be explicitly enabled.
Default to a NOOP implementation if disabled.
This commit is contained in:
Ralf Haferkamp
2022-12-21 15:38:14 +01:00
committed by Ralf Haferkamp
parent 795bc70546
commit b302af88f6
6 changed files with 137 additions and 11 deletions
@@ -55,13 +55,14 @@ func DefaultConfig() *config.Config {
UserNameAttribute: "uid",
// FIXME: switch this to some more widely available attribute by default
// ideally this needs to be constant for the lifetime of a users
UserIDAttribute: "owncloudUUID",
GroupBaseDN: "ou=groups,o=libregraph-idm",
GroupSearchScope: "sub",
GroupFilter: "",
GroupObjectClass: "groupOfNames",
GroupNameAttribute: "cn",
GroupIDAttribute: "owncloudUUID",
UserIDAttribute: "owncloudUUID",
GroupBaseDN: "ou=groups,o=libregraph-idm",
GroupSearchScope: "sub",
GroupFilter: "",
GroupObjectClass: "groupOfNames",
GroupNameAttribute: "cn",
GroupIDAttribute: "owncloudUUID",
EducationResourcesEnabled: false,
},
},
Events: config.Events{