Bug 15248 - libldb doesn't work with dotted/lotless i languages (example: tr_TR.UTF-8)
Summary: libldb doesn't work with dotted/lotless i languages (example: tr_TR.UTF-8)
Status: NEEDINFO
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.16.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andreas Schneider
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-18 07:56 UTC by Andreas Schneider
Modified: 2022-11-22 09:27 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2022-11-18 07:56:19 UTC
This can be easily reproduced with:

  LC_ALL=tr_TR.UTF-8 make test


If we are searching for DNs, we should enforce the use of the POSIX locale. Only for values we should use the locale set for the system.


Patch will follow.
Comment 1 Björn Jacke 2022-11-19 19:29:25 UTC
have in mind that switching locales (to POSIX or whatever) is _not_ the right approach. You should use ASCII aware functions instead of locale aware string functions. toupper() for example is not usable as it make , Samba has strupper_m() instead, which is ASCII proof.
Comment 2 Andreas Schneider 2022-11-22 09:27:30 UTC
Björn, please be more precise what you want. See my comments in the merge request or create one with code you prefer ...