Skip to content

Issue 6507 - changelog modifiers operation not displayed in dbscan - #6511

Merged
progier389 merged 1 commit into
389ds:mainfrom
progier389:r61353
Jan 20, 2025
Merged

Issue 6507 - changelog modifiers operation not displayed in dbscan#6511
progier389 merged 1 commit into
389ds:mainfrom
progier389:r61353

Conversation

@progier389

@progier389 progier389 commented Jan 17, 2025

Copy link
Copy Markdown
Contributor

Problem: when dbscan dumps the changelog, it does not display modify operation modifier sub operation
(i.e: add/delete/replace) on the specified attribute

Solution:
Use a format similar to the ldif one:

    suboperation: type
    type: value
    ...
    -

but only when dumpoing a modify operation : add and modrdn still use the

   type:value
   ...

format

Issue: #6507

Reviewd by: @mreynolds389, @tbordaz (Thanks!)

@progier389 progier389 linked an issue Jan 17, 2025 that may be closed by this pull request

@tbordaz tbordaz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as well

pos += sizeof(uint32_t);

op &= LDAP_MOD_OP;
if (print_op && op < PR_ARRAY_SIZE(ops)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be the case but just for safety you may check that op>0

@progier389
progier389 merged commit 3f1c3c3 into 389ds:main Jan 20, 2025
@progier389
progier389 deleted the r61353 branch March 19, 2026 18:19
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

Successfully merging this pull request may close these issues.

changelog modifiers operation not displayed in dbscan

3 participants