[Samba] Switching roles between 2 DCs

Lothar Schilling ls at proasyl.de
Tue Aug 11 15:05:57 UTC 2020


Am 11.08.2020 um 16:02 schrieb Rowland penny via samba:
> On 11/08/2020 14:54, Lothar Schilling via samba wrote:
>> Yep, that did it, thanks a lot, "-k yes" wasn't good enough. There now
>> was another error, though:
>>
>> ERROR(<type 'exceptions.AttributeError'>): uncaught exception - 'module'
>> object has no attribute 'drs_utils'
>>
>> The solution offered and working is inserting
>>
>>    import samba
>>    import samba.getopt as options
>>    import ldb
>> +import samba.drs_utils
>>    from ldb import LdbError
>>
>> into
>>
>> /usr/lib/python2.7/dist-packages/samba/netcmd/fsmo.py
>>
>> Lothar
>
> It looks like you are using an unsupported (by Samba) version of
> Samba, I suggest you upgrade as soon as possible.
>
> Rowland

That's what I did:

/etc/apt/sources.list

deb cdrom:[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD
Binary-1 20200509-10:26]/ buster contrib main
deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main
deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main
contrib
deb http://deb.debian.org/debian/ buster-updates main contrib
deb-src http://deb.debian.org/debian/ buster-updates main contrib
deb http://ftp.de.debian.org/debian/ buster main contrib non-free
deb-src http://ftp.de.debian.org/debian/ buster main contrib non-free

apt-get install samba libpam-heimdal heimdal-clients ldb-tools winbind
libpam-winbind smbclient libnss-winbind bind9 bind9utils dnsutils

Lothar



More information about the samba mailing list