allow adding group by name or id

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2023-03-21 17:20:41 +01:00
parent 40ab22195d
commit 6b1cea32c4
+1 -1
View File
@@ -220,7 +220,7 @@ func (i *LDAP) DeleteGroup(ctx context.Context, id string) error {
func (i *LDAP) AddMembersToGroup(ctx context.Context, groupID string, memberIDs []string) error {
logger := i.logger.SubloggerWithRequestID(ctx)
logger.Debug().Str("backend", "ldap").Msg("AddMembersToGroup")
ge, err := i.getLDAPGroupByID(groupID, true)
ge, err := i.getLDAPGroupByNameOrID(groupID, true)
if err != nil {
return err
}