[Samba] unicode characters in samba-tool user names

L.P.H. van Belle belle at bazuin.nl
Wed Jun 26 08:01:08 UTC 2019


Hai, 

There a few ways to avoid this error. 

1) Report is as bug @debian include the bugzilla report. 

2) Ask debian to upgrade samba to latest 4.9.x or 4.10.x .

Note: The are much more of these "python" 2/3 errors but these are fixed in later samba versions. 

3) build samba yourself, (you have 2 says, compile, of re-build-packages )
I can give you the steps on debian, but you might need some of my sources. 

4) enable my repo and use these samba packages. 
( http://apt.van-belle.nl ) 


Greetz, 

Louis





> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens 
> Pisch Tamás via samba
> Verzonden: woensdag 26 juni 2019 8:17
> Aan: samba at lists.samba.org
> Onderwerp: [Samba] unicode characters in samba-tool user names
> 
> Hi,
> 
> I would like to add users with unicode characters in their names (not
> in username, but in --surname, and in --given-name). I get the
> following error message:
> ERROR(<type 'exceptions.UnicodeDecodeError'>): Failed to add user
> 'testuser':  - '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'))
> I tested it on Debian 10, with Samba 4.9.5.
> I found some closed bug reports, where occured similar error, and
> according to that reports, the problem is python2. Samba 4.10 has full
> python3 support, but I don't want to compile Samba from source. Is
> there another way I avoid that error?
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
> 
> 




More information about the samba mailing list