[Samba] backup AD content

Rowland penny rpenny at samba.org
Fri Aug 30 13:59:45 UTC 2019


On 30/08/2019 14:52, Stefan G. Weichinger via samba wrote:
> I tried that offline backup now, and as it throws an exception at the
> end I'd like to share the output for your check if that is still OK (I'd
> like backups and programs in general to run without errors ...)
>
>
>
> ERROR(<type 'exceptions.IndexError'>): uncaught exception - list index
> out of range
>    File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line
> 178, in _run
>      return self.run(*args, **kwargs)
>    File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain_backup.py",
> line 237, in run
>      new_sid = get_sid_for_restore(remote_sam)
>    File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain_backup.py",
> line 73, in get_sid_for_restore
>      rid = int(res[0].get('rIDNextRID')[0])
>
We had this yesterday ;-)

Tim Beale wrote this:

It's not really a bug. The backup process needs to allocate a new RID
and the DC you're running the backup against doesn't have a RID pool
allocated. E.g. see:

https://lists.samba.org/archive/samba/2019-February/221619.html

I have improved the error message you get in this case on master, but I
haven't backported this yet.

Rowland





More information about the samba mailing list