Skip to content

Net_LDAP2_Entry::update(): do not submit empty modification #9

Description

@brenard

I detect a bug on OpenLDAP instance with the overlay constraints enabled when I try to rename an entry : I'm using the Net_LDAP2::move() method to rename the entry and in this case :

  1. the Net_LDAP2::move() set the entry new DN with Net_LDAP2_Entry::dn() method and run Net_LDAP2_Entry::update()
  2. the Net_LDAP2_Entry::update() run the ldap_rename() function to handle the DN change
  3. finally, it run ldap_modify() function with an empty $modifications as changes

In common case, this ldap_modify without change, is useless but it's not a problem. However, when the contraints overlay is enabled, it's trigger its constraint_update() got null modlist error.

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