Bug 16181 - remove the gluing of spaces inside the RDN
Summary: remove the gluing of spaces inside the RDN
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-16 06:33 UTC by prohorp
Modified: 2026-07-17 04:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description prohorp 2026-07-16 06:33:15 UTC
In Microsoft Actrive Directory 2022, only the beginning and ending spaces are cut out. Manual playback method: add objects to the "Active Directory - users and computers". Result: Only the beginning and ending spaces are cut out (all spaces inside the names are preserved). In Samba: The beginning and ending spaces are cut out + the spaces in the middle of the RDN are glued together. Expected result: samba does not glue spaces inside RDN.
Comment 1 Douglas Bagnall 2026-07-17 04:01:32 UTC
A difficulty with changing this is maintaining self-compatibility through the migration.

When we last fixed something here in bugs 14655, 14656, we ended up causing trouble because the indexes no longer matched the database (bug 14902).

As Andrew Bartlett said in bug 14902 comment 2, 

> We should perhaps force a re-index in a future version upgrade 
> (by bumping  SAMDB_INDEXING_VERSION to ensure this is done)

> However this will force a reindex regardless which is CPU intensive.


That is not to say we shouldn't do it, just that we need to be sure we get it right.