allow adding group by name or id
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -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 {
|
func (i *LDAP) AddMembersToGroup(ctx context.Context, groupID string, memberIDs []string) error {
|
||||||
logger := i.logger.SubloggerWithRequestID(ctx)
|
logger := i.logger.SubloggerWithRequestID(ctx)
|
||||||
logger.Debug().Str("backend", "ldap").Msg("AddMembersToGroup")
|
logger.Debug().Str("backend", "ldap").Msg("AddMembersToGroup")
|
||||||
ge, err := i.getLDAPGroupByID(groupID, true)
|
ge, err := i.getLDAPGroupByNameOrID(groupID, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user