fix(graph): Don't use hardcoded groupOfNames in group creation
This commit is contained in:
1 parent
b15815f2ca
commit
b1a3042019
2 files changed
+7
-1
No files matched your search
@@ -0,0 +1,6 @@
|
||||
Bugfix: Don't use hardcoded groupOfNames in group creation
|
||||
|
||||
When creating a group with different objectClass, it will always use groupOfNames instead of the one provided in the config.
|
||||
The server now creates groups using the objectClass defined in the config.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11776
|
||||
@@ -448,7 +448,7 @@ func (i *LDAP) getGroupCreateLDAPDN(group libregraph.Group) string {
|
||||
func (i *LDAP) groupToLDAPAttrValues(group libregraph.Group) (map[string][]string, error) {
|
||||
attrs := map[string][]string{
|
||||
i.groupAttributeMap.name: {group.GetDisplayName()},
|
||||
"objectClass": {"groupOfNames", "top", i.groupObjectClass},
|
||||
"objectClass": {i.groupObjectClass, "top"},
|
||||
// This is a crutch to allow groups without members for LDAP servers
|
||||
// that apply strict Schema checking. The RFCs define "member/uniqueMember"
|
||||
// as required attribute for groupOfNames/groupOfUniqueNames. So we
|
||||
|
||||
Reference in new issue
Block a user