[Samba] samba-tool dbcheck Unicode-Error

Stefan Kania stefan at kania-online.de
Thu Feb 28 11:34:53 UTC 2019


Hello,

we have 2 DC with Sernet Samba-packages 4.9.4 if we do a "samba-tool 
dbcheck" we get the following error:
----------
samba-tool dbcheck
Checking 1631 objects
ERROR(<type 'exceptions.UnicodeDecodeError'>): uncaught exception - 
'ascii' codec can't decode byte 0xc3 in position 29: ordinal not in 
range(128)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 
177, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 
157, in run
     controls=controls, attrs=attrs)
   File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 222, 
in check_database
     error_count += self.check_object(object.dn, attrs=attrs)
   File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 2315, 
in check_object
     expected_dn = ldb.Dn(self.samdb, "RDN=RDN,%s" % (parent_dn))

----------
As far as I figured out, it has something to do with german "Umlaute" 
"ÄÖÜ" in a DN. But we are in Germany and we have users with "Umlaute" in 
their names ;-). So how can this be fixed without renaming the object. 
Btw. because of the db-problem "samba-tool domain backup" isn't working.

Any hint?

Stefan
-- 



More information about the samba mailing list