Bug 2915 - utf8 paswords required instead of unicode
Summary: utf8 paswords required instead of unicode
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: python (show other bugs)
Version: 3.0.9
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-24 16:31 UTC by Tim Potter
Modified: 2019-06-13 21:38 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 Tim Potter 2005-07-24 16:31:57 UTC
Strings used as passwords need to be converted to utf8 instead of the default
encoding of unicode if they contain non-ascii characters.  This conversion
should be done inside the wrapper functions.

See the discussion at:

http://lists.samba.org/archive/samba-technical/2005-July/042000.html
Comment 1 Tim Potter 2005-08-02 12:19:16 UTC
A proper fix for this is going to be a bit more complicated.  All the strings
coming from wrapped functions need to be converted to unicode objects.  They're
currently just returned as regular strings with utf8 encoding.
Comment 2 Douglas Bagnall 2019-03-12 22:25:39 UTC
If this teenaged bag has not been fixed, it will certainly have changed character with the switch to Python3, where input strings are utf-8 by default.
Comment 3 Andrew Bartlett 2019-06-13 21:38:20 UTC
This referrers to an earlier generation of python scripts and not the current bindings.  Closing as fixed in all supported versions (4.8 and above), and certainly in master (4.11) which is py3 only. 

Thanks!