feat: refine way of adding users to instances

Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
This commit is contained in:
Julian Koberg
2026-01-13 12:54:19 +01:00
parent ddc6cb0651
commit 09c2dfbd11
13 changed files with 180 additions and 81 deletions

View File

@@ -101,7 +101,6 @@ func DefaultConfig() *config.Config {
UserIDAttribute: "owncloudUUID",
UserTypeAttribute: "ownCloudUserType",
UserEnabledAttribute: "ownCloudUserEnabled",
UserGuestAttribute: "ownCloudGuestOf",
ExternalIDAttribute: "owncloudExternalID",
DisableUserMechanism: "attribute",
LdapDisabledUsersGroupDN: "cn=DisabledUsersGroup,ou=groups,o=libregraph-idm",
@@ -113,6 +112,14 @@ func DefaultConfig() *config.Config {
GroupMemberAttribute: "member",
GroupIDAttribute: "owncloudUUID",
EducationResourcesEnabled: false,
// Multi-Instance example config. Note: Multi-Instance is disabled by default
UserMemberAttribute: "owncloudMemberOf",
UserGuestAttribute: "ownCloudGuestOf",
PreciseSearchAttribute: "cn",
InstanceMapperEnabled: true,
InstanceMapperBaseDN: "dc=owncloud,dc=com",
InstanceMapperNameAttribute: "description",
InstanceMapperIDAttribute: "cn",
},
},
Cache: &config.Cache{
@@ -133,6 +140,9 @@ func DefaultConfig() *config.Config {
Validation: config.Validation{
MaxTagLength: 100,
},
MultiInstance: config.MultiInstanceConfig{
QueryRegexp: "([^@]+)@(.+)",
},
}
}