[Samba] Password change via samba-tool: encoding issue
Chan Min Wai
dcmwai at gmail.com
Mon Mar 24 10:00:36 MDT 2014
Just to ask
Care to try
samba-tool user setpassword foo
and type the password in command line?
Your "�" seem to be not supported... as password
On Mon, Mar 24, 2014 at 11:43 PM, Sergio Rizzi <sergio.rizzi at labs.it> wrote:
> On 20/03/2014 15:13, Sergio Rizzi wrote:
>
>> root at samba4dc:~# samba-tool user setpassword "foo" --newpassword="�"
>> ERROR: Failed to set password for user 'foo': 'utf8' codec can't decode
>> byte 0xa8 in position 1: invalid start byte
>> File
>> "/usr/local/samba-4.1.6/lib/python2.7/site-packages/samba/
>> netcmd/user.py",
>> line 586, in run
>> username=username)
>> File
>> "/usr/local/samba-4.1.6/lib/python2.7/site-packages/samba/samdb.py",
>> line 476, in setpassword
>> pw = unicode('"' + password + '"', 'utf-8').encode('utf-16-le')
>>
>> How to fix it?
>>
>
> Any hint?
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
More information about the samba
mailing list