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

Ouvry Etienne eouvry at sqli.com
Tue Aug 27 09:31:50 BST 2019


I have exactly the same problem with debian 10 and samba 4.9.11+dfsg-1 
with option : --given-name='Loïc'

root at cdct:~# samba-tool user create ltest --userou='OU=Power 
users,OU=Users,OU=Paris1,OU=site,OU=azp' --surname='ltest' 
--given-name='Loïc' --mail-address='ltest at sqli.com' --department='BA2' 
--physical-delivery-office='Paris1' --uid='ltest' --uid-number='3906'
New Password:
Retype Password:
You are setting a Unix/RFC2307 UID or GID. You may want to set 
'idmap_ldb:use rfc2307 = Yes' to use those attributes for XID/SID-mapping.
ERROR(<type 'exceptions.UnicodeDecodeError'>): Failed to add user 
'ltest':  - 'ascii' codec can't decode byte 0xc3 in position 10: ordinal 
not in range(128)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/user.py", line 
425, in run
   File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 490, in 
   File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 606, in 
     """ % (user_dn, base64.b64encode(pw).decode('utf-8'))

root at cdct:~# dpkg -l | grep samba

ii  python-samba                    2:4.9.11+dfsg-1 amd64        Python 
bindings for Samba
ii  samba                           2:4.9.11+dfsg-1 amd64        
SMB/CIFS file, print, and login server for Unix
ii  samba-common                    2:4.9.11+dfsg-1 all          common 
files used by both the Samba server and client
ii  samba-common-bin                2:4.9.11+dfsg-1 amd64        Samba 
common files used by both the server and the client
ii  samba-dsdb-modules:amd64        2:4.9.11+dfsg-1 amd64        Samba 
Directory Services Database
ii  samba-libs:amd64                2:4.9.11+dfsg-1 amd64        Samba 
core libraries
ii  samba-vfs-modules:amd64         2:4.9.11+dfsg-1 amd64        Samba 
Virtual FileSystem plugins

root at cdct:~# hostnamectl
    Static hostname: cdct
          Icon name: computer-vm
            Chassis: vm
         Machine ID: 0401705cfd5c4a5b928a991c0c2089df
            Boot ID: 8da33c5d80bf4e5ca816b8b15d2b27c2
     Virtualization: kvm
   Operating System: Debian GNU/Linux 10 (buster)
             Kernel: Linux 4.19.0-5-amd64
       Architecture: x86-64

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20190827/451275c4/attachment.html>

More information about the Pkg-samba-maint mailing list