Skip to content

Duplicating a group member when adding to a group does not result in an error #209

Description

@pbleser-oc

When adding members to an LDAP group, and referencing one member multiple times, as exemplified by opencloud-eu/opencloud#3354, that member ends up actually being added multiple times.

The expected behaviour would be to get an error in return.

When attempting to do so against OpenLDAP, e.g. like this:

cat <<EOF | ldapmodify -x -D "cn=Administrator,dc=..." -W -H ldapi:/// 
dn: cn=users,ou=group,dc=...
add: member 
member: uid=user,ou=people,dc=...

then OpenLDAP responds with

modifying entry "cn=users,ou=group,dc=..."
ldap_modify: Type or value exists (20)
        additional info: modify/add: member: value #0 already exists

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions