fix issue with pve group creation appending unused realm string

This commit is contained in:
2026-03-29 17:51:59 +00:00
parent a1a18af016
commit 97bd582505
5 changed files with 10 additions and 4 deletions

View File

@@ -169,6 +169,7 @@ func (l LDAPClient) GetGroup(groupname common.Groupname) (common.Group, int, err
}
func (l LDAPClient) NewGroup(groupname common.Groupname) (int, error) {
// add new group by ID only
addRequest := ldap.NewAddRequest(
fmt.Sprintf("cn=%s,ou=groups,%s", groupname.GroupID, l.config.BaseDN), // DN
nil, // controls