directoryserver: Add member and uniquemember attributes

https://datatracker.ietf.org/doc/html/rfc4519#section-2.17
https://datatracker.ietf.org/doc/html/rfc4519#section-2.40
This commit is contained in:
Johannes Zellner
2023-07-31 13:13:02 +02:00
parent 65769e5701
commit 650966a7e5

View File

@@ -241,7 +241,9 @@ async function groupSearch(req, res, next) {
objectclass: ['group'],
cn: group.name,
gidnumber: group.id,
memberuid: members
memberuid: members,
member: members.map((userId) => `cn=${userId},ou=users,dc=cloudron`),
uniquemember: members.map((userId) => `cn=${userId},ou=users,dc=cloudron`)
}
};