Skip to content

[LDAP] Update throws "Constraint violation" #21328

@estahn

Description

@estahn
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.2.2

When fetching an entry from the ActiveDirectory server and then immediately saving it again, we see the following error:

[Symfony\Component\Ldap\Exception\LdapException]
  Could not update entry "CN=User1234,OU=Foo,OU=Users,OU=org,DC=corp,DC=domain,DC=com": Constraint violation

If using only certain attributes, e.g.

ldap_modify($this->ldap->getEntryManager()->connection->getResource(), $person->getId(), ['givenName' => 'Foo1']);

It will succeed.

So pushing the entire LDAP entry to be updated is not working or will not always work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions