mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Fix build errors
This commit is contained in:
@@ -66,19 +66,18 @@ public class GroupsController : Controller
|
||||
{
|
||||
description ??= JsonSerializer.Serialize(new GroupPermissions() {Permissions = []});
|
||||
|
||||
LdapAttributeSet attributeSet =
|
||||
[
|
||||
new LdapAttribute("objectClass", "posixGroup"),
|
||||
new LdapAttribute("objectClass", "top"),
|
||||
new LdapAttribute("cn", cn),
|
||||
new LdapAttribute("gidNumber", gidNumber),
|
||||
new LdapAttribute("description",
|
||||
JsonSerializer.Serialize(
|
||||
new GroupPermissions()
|
||||
{
|
||||
Permissions = [.. permissions]
|
||||
})),
|
||||
];
|
||||
var attributeSet = new LdapAttributeSet();
|
||||
attributeSet.Add(new LdapAttribute("objectClass", "posixGroup"));
|
||||
attributeSet.Add(new LdapAttribute("objectClass", "top"));
|
||||
attributeSet.Add(new LdapAttribute("cn", cn));
|
||||
attributeSet.Add(new LdapAttribute("gidNumber", gidNumber));
|
||||
attributeSet.Add(new LdapAttribute(
|
||||
"description",
|
||||
JsonSerializer.Serialize(new GroupPermissions()
|
||||
{
|
||||
Permissions = [.. permissions]
|
||||
})));
|
||||
|
||||
await _ldap.CreateGroup(cn, attributeSet);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user