[Pkg-samba-maint] Bug#931411: samba-common-bin: samba-tool user create error with unicode characters in the names
Pisch Tamás
pischta at gmail.com
Thu Jul 4 10:50:44 BST 2019
Package: samba-common-bin
Version: 2:4.9.5+dfsg-5
Severity: normal
Dear Maintainer,
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.
-- System Information:
Debian Release: 10.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-5-amd64 (SMP w/1 CPU core)
Kernel taint flags: TAINT_CRAP
Locale: LANG=hu_HU.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8),
LANGUAGE=hu_HU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages samba-common-bin depends on:
ii libbsd0 0.9.1-2
ii libc6 2.28-10
ii libldap-2.4-2 2.4.47+dfsg-3
ii libncurses6 6.1+20181013-2
ii libpopt0 1.16-12
ii libreadline7 7.0-5
ii libtalloc2 2.1.14-2
ii libtdb1 1.3.16-2+b1
ii libtevent0 0.9.37-1
ii libtinfo6 6.1+20181013-2
ii libwbclient0 2:4.9.5+dfsg-5
ii python 2.7.16-1
ii python-samba 2:4.9.5+dfsg-5
ii python2.7 2.7.16-2
ii samba-common 2:4.9.5+dfsg-5
ii samba-libs 2:4.9.5+dfsg-5
Versions of packages samba-common-bin recommends:
ii samba-dsdb-modules 2:4.9.5+dfsg-5
Versions of packages samba-common-bin suggests:
pn heimdal-clients <none>
-- no debconf information
I have sent this bug report with reportbug, from the Debian host, but
I'm not sure, whether you received my mail, and the bug haven't
appeared on here:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?dist=unstable;package=samba-common-bin
More information about the Pkg-samba-maint
mailing list