wrong password-encoding in python-modules?

Simo Sorce idra at samba.org
Fri Jul 22 13:18:13 GMT 2005


On Fri, 2005-07-22 at 14:08 +0200, Ingo Steuwer wrote:
> Hi
> 
> I've tried to use the spoolss Python-module to connect to a NT4-Printershare. 
> The password contains german umlauts, which made it impossible to connect.
> 
> To avoid Codepage-problems, I changed the password to one Character (ä) and 
> iterated from i=0 to 255 doing a python "chr(i)" as password, but none 
> matched.
> 
> As the routines expect a string (and not a unicode) I expected that one should 
> match. Is this my misunderstanding, or a bug in spoolss-bug/the underlying 
> lib?

have you tried the corresponding utf-8 char?
I suspect you confuse "unicode" with the specific windows wire format
UCS-2.

Simo.

-- 
Simo Sorce    -  idra at samba.org
Samba Team    -  http://www.samba.org
Italian Site  -  http://samba.xsec.it


More information about the samba-technical mailing list