[389-devel] Please review: [389 Project] #363: Passsync/Winsync handles passwords with 8-th bit characters incorrectly

Noriko Hosoi nhosoi at redhat.com
Wed May 15 23:20:41 UTC 2013


https://fedorahosted.org/389/ticket/363

https://fedorahosted.org/389/attachment/ticket/363/0001-Ticket-363-Passsync-Winsync-handles-passwords-with-8.patch

Bug description: Passhook plugin used to store the password in
the intermediate file passhook.dat using _snprintf which just
converts wchar in ascii to char without considering the non-
ascii characters.

Fix description: Instead of using _snprintf, WideCharToMultiByte? 
<https://fedorahosted.org/389/wiki/WideCharToMultiByte>
is called to convert the Microsoft internal character set to
UTF-8, which is valid in LDAP.

Also, in SyncPasswords? 
<https://fedorahosted.org/389/wiki/SyncPasswords> (PassSync? 
<https://fedorahosted.org/389/wiki/PassSync>), it adds LDAP_INAPPROPRIATE_
AUTH to the condition to send the password change on Windows to
the Directory server. Bind returns LDAP_INAPPROPRIATE_AUTH,
when a password is not in the entry for SIMPLE auth. PassSync? 
<https://fedorahosted.org/389/wiki/PassSync>
should be able to send the password for the case, as well.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/389-devel/attachments/20130515/a0b93cc5/attachment.html>


More information about the 389-devel mailing list