Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc bug: Inaccurate text about replace operations #490

Open
quanah opened this issue Aug 23, 2022 · 0 comments
Open

Doc bug: Inaccurate text about replace operations #490

quanah opened this issue Aug 23, 2022 · 0 comments

Comments

@quanah
Copy link
Contributor

quanah commented Aug 23, 2022

Doc/reference/ldap-modlist.rst has the following text:

   .. note::
      Replacing attribute values is always done with a
      :py:const:`ldap.MOD_DELETE`/:py:const:`ldap.MOD_ADD` pair instead of
      :py:const:`ldap.MOD_REPLACE` to work-around potential issues with
      attributes for which no EQUALITY matching rule are defined in the
      server's subschema.  This works correctly in most situations but
      rarely fails with some LDAP servers implementing (schema) checks on
      transient state entry during processing the modify operation.

This text seems to be incorrect, since it is doing an MOD_ADD or MOD_DELETE of a specific attribute value that requires matching rules to exist, and one usually uses a MOD_REPLACE operation to do the change to avoid the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant