Skip to content

Support LDAPModifyDNRequest with deleteoldrdn=False on the server (fixes #89) - #257

Merged
psi29a merged 1 commit into
masterfrom
fixes/batch4
Aug 25, 2026
Merged

Support LDAPModifyDNRequest with deleteoldrdn=False on the server (fixes #89)#257
psi29a merged 1 commit into
masterfrom
fixes/batch4

Conversation

@psi29a

@psi29a psi29a commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Support LDAPModifyDNRequest with deleteoldrdn=False on the server (fixes #89)

The server used to raise LDAPUnwillingToPerform for the "preserve old RDN" case. Add a deleteOldRDN kwarg on inmemory move / _move / _move2, plumb it through the client-side ldapsyntax.LDAPEntry.move, and thread the wire flag through handle_LDAPModifyDNRequest. When False, the old RDN attribute value is retained on the moved entry (RFC 4511 4.9).

Regression test in test_server covers the preserve-old-RDN success path. Full suite green on py3.11 / 3.13 / 3.14.

 #89)

The server used to raise LDAPUnwillingToPerform for the "preserve old
RDN" case. Add a deleteOldRDN kwarg on inmemory move / _move / _move2,
plumb it through the client-side ldapsyntax.LDAPEntry.move, and thread
the wire flag through handle_LDAPModifyDNRequest. When False, the old
RDN attribute value is retained on the moved entry (RFC 4511 4.9).

Regression test in test_server covers the preserve-old-RDN success
path. Full suite green on py3.11 / 3.13 / 3.14.
@psi29a
psi29a merged commit 231d665 into master Aug 25, 2026
5 checks passed
@psi29a
psi29a deleted the fixes/batch4 branch August 25, 2026 13:47
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.

Implement LDAPModifyDNRequest with deleteoldrdn=False

1 participant