miguel medalha
2019-Mar-05 17:10 UTC
[Samba] samba-tool dbcheck: UnicodeDecodeError' with Samba 4.9.4
I decided to give Samba 4.9.x a new try as AD DC in one of my servers. It has been running version 4.8.9. I installed version 4.9.4 and when I ran samba-tool dbcheck I still obtained the following error message: ERROR(<type 'exceptions.UnicodeDecodeError'>): uncaught exception - 'ascii' codec can't decode byte 0xc3 in position 25: ordinal not in range(128) File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/__init__.py", line 177, in _run return self.run(*args, **kwargs) File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/dbcheck.py", line 157, in run controls=controls, attrs=attrs) File "/usr/local/samba/lib64/python2.6/site-packages/samba/dbchecker.py", line 222, in check_database error_count += self.check_object(object.dn, attrs=attrs) File "/usr/local/samba/lib64/python2.6/site-packages/samba/dbchecker.py", line 2315, in check_object expected_dn = ldb.Dn(self.samdb, "RDN=RDN,%s" % (parent_dn)) Looks like the Unicode problem with Python 2.6.x is not yet solved. This particular machine is running CentOS 6.10. I cannot upgrade to 7.x yet because it has discontinued support for a particular RAID controller in use (IBM Megaraid, ips.ko driver).
Stefan Kania
2019-Mar-05 18:41 UTC
[Samba] samba-tool dbcheck: UnicodeDecodeError' with Samba 4.9.4
I had the same problem, it was the DN of one of my OU? I remplaced the "ü" with a "ue" and everything was fine. Am 05.03.19 um 18:10 schrieb miguel medalha via samba:> I decided to give Samba 4.9.x a new try as AD DC in one of my servers. > It has been running version 4.8.9. I installed version 4.9.4 and when I > ran samba-tool dbcheck I still obtained the following error message: > > ERROR(<type 'exceptions.UnicodeDecodeError'>): uncaught exception - > 'ascii' codec can't decode byte 0xc3 in position 25: ordinal not in > range(128) > File > "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/__init__.py", > line 177, in _run > return self.run(*args, **kwargs) > File > "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/dbcheck.py", line > 157, in run > controls=controls, attrs=attrs) > File > "/usr/local/samba/lib64/python2.6/site-packages/samba/dbchecker.py", > line 222, in check_database > error_count += self.check_object(object.dn, attrs=attrs) > File > "/usr/local/samba/lib64/python2.6/site-packages/samba/dbchecker.py", > line 2315, in check_object > expected_dn = ldb.Dn(self.samdb, "RDN=RDN,%s" % (parent_dn)) > > Looks like the Unicode problem with Python 2.6.x is not yet solved. > > This particular machine is running CentOS 6.10. I cannot upgrade to 7.x > yet because it has discontinued support for a particular RAID controller > in use (IBM Megaraid, ips.ko driver). > >-- Stefan Kania Landweg 13 25693 St. Michaelisdonn Signieren jeder E-Mail hilft Spam zu reduzieren. Signieren Sie ihre E-Mail. Weiter Informationen unter http://www.gnupg.org Mein Schlüssel liegt auf hkp://subkeys.pgp.net -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20190305/69fc4206/signature.sig>
miguel medalha
2019-Mar-05 19:03 UTC
[Samba] samba-tool dbcheck: UnicodeDecodeError' with Samba 4.9.4
> I had the same problem, it was the DN of one of my OU? I remplaced the > "ü" with a "ue" and everything was fine.I cannot just do that. Lots of my users, groups and OUs have accented characters in their names. Up to version 4.8.9 it all works perfectly. This is Bug 13616, which had been closed and I just reopened: https://bugzilla.samba.org/show_bug.cgi?id=13616