Bug#931411: samba-common-bin: samba-tool user create error with unicode characters in the names

2019-07-08 Thread Pisch Tamás
Hi,

Is it possible that the patch already applied? As I see, it is. I
tried to add a test user again:
samba-tool user create teszt1 p4ssw0rd --surname=Vezetéknév
but the result was the same.

Mathieu Parent  ezt írta (időpont: 2019. júl.
7., V, 10:33):
>
> Control: tag + confirmed upstream fixed-upstream
>
> Le jeu. 4 juil. 2019 à 11:54, Pisch Tamás  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(): 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



Bug#931411: samba-common-bin: samba-tool user create error with unicode characters in the names

2019-07-04 Thread Pisch Tamás
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(): 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  libbsd00.9.1-2
ii  libc6  2.28-10
ii  libldap-2.4-2  2.4.47+dfsg-3
ii  libncurses66.1+20181013-2
ii  libpopt0   1.16-12
ii  libreadline7   7.0-5
ii  libtalloc2 2.1.14-2
ii  libtdb11.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  

-- 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