<html><head></head><body>Hello; <br/> <br/>I have exactly the same problem with debian 10 and samba 4.9.11+dfsg-1  <br/>with option : --given-name='Loïc' <br/> <br/>root@cdct:~# samba-tool user create ltest --userou='OU=Power  <br/>users,OU=Users,OU=Paris1,OU=site,OU=azp' --surname='ltest'  <br/>--given-name='Loïc' --mail-address='ltest@sqli.com' --department='BA2'  <br/>--physical-delivery-office='Paris1' --uid='ltest' --uid-number='3906' <br/>New Password: <br/>Retype Password: <br/>You are setting a Unix/RFC2307 UID or GID. You may want to set  <br/>'idmap_ldb:use rfc2307 = Yes' to use those attributes for XID/SID-mapping. <br/>ERROR(<type 'exceptions.UnicodeDecodeError'>): Failed to add user  <br/>'ltest':  - 'ascii' codec can't decode byte 0xc3 in position 10: ordinal  <br/>not in range(128) <br/>   File "/usr/lib/python2.7/dist-packages/samba/netcmd/user.py", line  <br/>425, in run <br/>     smartcard_required=smartcard_required) <br/>   File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 490, in  <br/>newuser <br/>     force_password_change_at_next_login_req) <br/>   File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 606, in  <br/>setpassword <br/>     """ % (user_dn, base64.b64encode(pw).decode('utf-8')) <br/> <br/>root@cdct:~# dpkg -l | grep samba <br/> <br/>ii  python-samba                    2:4.9.11+dfsg-1 amd64        Python  <br/>bindings for Samba <br/>ii  samba                           2:4.9.11+dfsg-1 amd64         <br/>SMB/CIFS file, print, and login server for Unix <br/>ii  samba-common                    2:4.9.11+dfsg-1 all          common  <br/>files used by both the Samba server and client <br/>ii  samba-common-bin                2:4.9.11+dfsg-1 amd64        Samba  <br/>common files used by both the server and the client <br/>ii  samba-dsdb-modules:amd64        2:4.9.11+dfsg-1 amd64        Samba  <br/>Directory Services Database <br/>ii  samba-libs:amd64                2:4.9.11+dfsg-1 amd64        Samba  <br/>core libraries <br/>ii  samba-vfs-modules:amd64         2:4.9.11+dfsg-1 amd64        Samba  <br/>Virtual FileSystem plugins <br/> <br/>root@cdct:~# hostnamectl <br/>    Static hostname: cdct <br/>          Icon name: computer-vm <br/>            Chassis: vm <br/>         Machine ID: 0401705cfd5c4a5b928a991c0c2089df <br/>            Boot ID: 8da33c5d80bf4e5ca816b8b15d2b27c2 <br/>     Virtualization: kvm <br/>   Operating System: Debian GNU/Linux 10 (buster) <br/>             Kernel: Linux 4.19.0-5-amd64 <br/>       Architecture: x86-64 <br/> <br/><BR/><a name='0253ac7a62e74265937f40af0532ae0a'></a><table border="0" cellpadding="0" cellspacing="0" style="width: 500px;"> 
 <tbody> 
  <tr> 
   <td> 
    <table border="0" cellpadding="0" cellspacing="0" style="width: 500px;"> 
     <tbody> 
      <tr> 
       <td height="100" style="vertical-align: middle; width: 165px;"><img alt="" border="0" height="74" src="https://letsignit.sqli.com/lsi/static/bb39a8fe1f234ec6a06b4d9a4b720b81/Logo + pictos 2019/SQLI.png" style="width: 180px; height: 74px; border-width: 0px; border-style: solid;" width="180" /></td> 
       <td style="height: 100px; width: 280px; vertical-align: top;"> 
        <table border="0" cellspacing="0" style="width: 290px;" width="348"> 
         <tbody> 
          <tr> 
           <td style="font-family: Arial; color: rgb(55, 20, 80); font-size: 12px;"><strong><span class="mibKeyword">ETIENNE</span></strong><strong> <span contenteditable="false">OUVRY</span></strong><strong> <span class="mibKeyword"></span></strong><br /> <span style="font-size: 11px; width: 217.5pt;"><span contenteditable="false">Technicien Systèmes & Réseaux</span></span><br /> <span style="font-size: 11px; width: 217.5pt;"><a href="mailto:eouvry@sqli.com" style="color: rgb(55, 20, 80); text-decoration-line: none;" target="_blank"><span contenteditable="false">eouvry@sqli.com</span></a></span><br /> <span style="font-size: 11px; width: 217.5pt;"><span contenteditable="false">Tél :+33 1 86 99 94 85</span><span contenteditable="false"></span></span><br /> <span style="font-size: 11px; height: 11.25pt; width: 217.5pt;"><a href="https://letsignit.sqli.com/r/1/8df1b5b2-de2d-4586-ae4c-ab97fdb3fb27"  style="color: rgb(55, 20, 80); text-decoration-line: none;" target="_blank">www.sqli.com</a> - <a href="https://letsignit.sqli.com/r/212/6d116f60-89d7-4309-b5cd-f9914b35d3f9"  style="font-family:Arial; font-size:11px; color:#371450; text-decoration:none" target="_blank">www.sqli-carrieres.com/</a></span></td> 
          </tr> 
          <tr> 
           <td style="height: 30px; vertical-align: middle;"> 
            <table border="0" cellpadding="0" cellspacing="0" style="width: 120px;"> 
             <tbody> 
              <tr> 
               <td style="vertical-align: bottom; width: 30px;"><a href="https://letsignit.sqli.com/r/207/3f44ae69-b628-4764-bfe3-16793cfbe004"  target="_blank"><img alt="" border="0" height="21" src="https://letsignit.sqli.com/lsi/static/bb39a8fe1f234ec6a06b4d9a4b720b81/Logo + pictos 2019/Socialmediarose.png" style="border-width: 0px; border-style: solid; width: 21px; height: 21px;" width="21" /></a> </td> 
               <td style="vertical-align: top; width: 30px;"><a href="https://letsignit.sqli.com/r/208/51a36b3f-8227-4540-b0e6-44024e0a8959"  target="_top"><img alt="" border="0" height="21" src="https://letsignit.sqli.com/lsi/static/bb39a8fe1f234ec6a06b4d9a4b720b81/Logo + pictos 2019/Socialmediarose_2.png" style="border-width: 0px; border-style: solid; width: 21px; height: 21px;" width="21" /></a></td> 
               <td style="vertical-align: top; width: 30px;"><a href="https://letsignit.sqli.com/r/209/4cc6ebe4-0135-48b4-8419-cd32c0c579d9"  target="_blank"><img alt="" border="0" height="21" src="https://letsignit.sqli.com/lsi/static/bb39a8fe1f234ec6a06b4d9a4b720b81/Logo + pictos 2019/Socialmediarose_3.png" style="border-width: 0px; border-style: solid; width: 21px; height: 21px;" width="21" /></a></td> 
               <td style="vertical-align: top; width: 30px;"><a href="https://letsignit.sqli.com/r/7/5ba3da97-fc1e-4920-a8ee-372a3083f20a"  target="_blank"><img alt="" border="0" height="21" src="https://letsignit.sqli.com/lsi/static/bb39a8fe1f234ec6a06b4d9a4b720b81/Logo + pictos 2019/Socialmediarosebis.png" style="border-width: 0px; border-style: solid; width: 21px; height: 21px;" width="21" /></a></td> 
              </tr> 
             </tbody> 
            </table> </td> 
          </tr> 
         </tbody> 
        </table> </td> 
      </tr> 
     </tbody> 
    </table> 
    <table border="0" cellpadding="0" cellspacing="0" style="width: 460px;"> 
     <tbody> 
      <tr> 
       <td style="border-top: 9px solid rgb(235, 40, 90); max-width: 460px; width: 460px;"><img alt="" border="0" height="87" src="https://letsignit.sqli.com/lsi/static/bb39a8fe1f234ec6a06b4d9a4b720b81/France/Campagne_signature_FR.gif" style="width: 460px; height: 87px; border-width: 0px; border-style: solid;" width="460" /></td> 
      </tr> 
     </tbody> 
    </table> </td> 
  </tr> 
  <tr> 
  </tr> 
 </tbody> 
</table> 
<br /> 
<br />  
<br /> 
<br />  <a name='end_signature_lsi'></a></body></html>