Control: tag + confirmed upstream fixed-upstream Le jeu. 4 juil. 2019 à 11:54, Pisch Tamás <pisc...@gmail.com> a écrit : > > Package: samba-common-bin > Version: 2:4.9.5+dfsg-5 > Severity: normal > > Dear Maintainer,
Hi > when I give the command, for example > samba-tool user create test pwd --surname Vezetéknév --givenname Keresztnév > I get the following error message: > ERROR(<type 'exceptions.UnicodeDecodeError'>): Failed to add user > 'teszttanar3': - 'ascii' codec can't decode byte 0xc3 in position 16: > ordinal not in range(128) > File "/usr/lib/python2.7/dist-packages/samba/netcmd/user.py", line 425, in > run > smartcard_required=smartcard_required) > File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 490, in newuser > force_password_change_at_next_login_req) > File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 606, in > setpassword > """ % (user_dn, base64.b64encode(pw).decode('utf-8')) > On the Samba list, somebody suggested to use newer Samba version, > because it is improved. Samba 4.10 can (or in default?) uses python3, > and with it, I could use unicode > characters. Ok, but I would like to use Debian 10, with official packages. Your error is on the password. Could you try this patch: https://gitlab.com/samba-team/samba/commit/7102732b25dfcd5e6815159e3043eed240e918d3 Thanks -- Mathieu Parent