[Samba] samba-tool dbcheck Unicode-Error

Stefan Kania stefan at kania-online.de
Thu Feb 28 12:14:49 UTC 2019


Hi Louis,

Am 28.02.2019 12:47, schrieb L.P.H. van Belle via samba:
> Hai Stefan,
> 
> See.
> https://bugzilla.samba.org/show_bug.cgi?id=13616
> 
That's what I found, too. We did not do an update it's a fresh 
installation (migrate from samb3 with classicupgrade).
I now did a "samba-tool dbcheck -v " and I see that the "ü" in the DN of 
a OU it's the problem.

> I think thats you problem, at least simular.
> A left over from the python2 -> python3 conversion.
That's bad, very bad.
> 
> I dont know it this one is in the sernet packages.
> Whats your ldb version? That should tell me more.
I dont have the sources, how can I figure out which ldb-version they 
use?

Stefan
> 
> 
> Greetz,
> 
> Louis
> 
> 
> 
>> -----Oorspronkelijk bericht-----
>> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
>> Stefan Kania via samba
>> Verzonden: donderdag 28 februari 2019 12:35
>> Aan: samba at lists.samba.org
>> Onderwerp: [Samba] samba-tool dbcheck Unicode-Error
>> 
>> 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
>> --
>> 
>> --
>> 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