[Samba] domain backup online

L.P.H. van Belle belle at bazuin.nl
Wed Jul 17 13:48:29 UTC 2019


Hai Ivan, 

This one was already asked ;-) See this thread: 
https://lists.samba.org/archive/samba/2019-March/221624.html

Greetz, 

Louis


> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens Ivan 
> Juriši?? via samba
> Verzonden: woensdag 17 juli 2019 13:39
> Aan: samba at lists.samba.org
> Onderwerp: [Samba] domain backup online
> 
> On my primary Samba AD DC server all work ok when doing online backup,
> but on my secudary server I have error:
> 
> ERROR(<type 'exceptions.IndexError'>): uncaught exception - list index
> out of range
>   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/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])
> 
> 
> How to fix?
> 
> Complete output:
> 
> root at dc2:/var/log# samba-tool domain backup online
> --server=dc2.intra.mydomain.com --targetdir=/media/backup
> -Uadministrator at intra.mydomain.com
> workgroup is MYDOMAIN
> realm is intra.mydomain.com
> Calling bare provision
> Looking up IPv4 addresses
> Looking up IPv6 addresses
> No IPv6 address will be assigned
> Setting up share.ldb
> Setting up secrets.ldb
> Setting up the registry
> Setting up the privileges database
> Setting up idmap db
> Setting up SAM db
> Setting up sam.ldb partitions and settings
> Setting up sam.ldb rootDSE
> Pre-loading the Samba 4 and AD schema
> Unable to determine the DomainSID, can not enforce uniqueness 
> constraint
> on local domainSIDs
> 
> A Kerberos configuration suitable for Samba AD has been generated at
> /media/backup/tmphyBvX0/private/krb5.conf
> Merge the contents of this file with your system krb5.conf or 
> replace it
> with this one. Do not create a symlink!
> Provision OK for domain DN DC=intra,DC=mydomain,DC=com
> Starting replication
> Using DS_BIND_GUID_W2K3
> Schema-DN[CN=Schema,CN=Configuration,DC=intra,DC=mydomain,DC=com]
> objects[402/1550] linked_values[0/0]
> Schema-DN[CN=Schema,CN=Configuration,DC=intra,DC=mydomain,DC=com]
> objects[804/1550] linked_values[0/0]
> Schema-DN[CN=Schema,CN=Configuration,DC=intra,DC=mydomain,DC=com]
> objects[1206/1550] linked_values[0/0]
> Schema-DN[CN=Schema,CN=Configuration,DC=intra,DC=mydomain,DC=com]
> objects[1550/1550] linked_values[0/0]
> Analyze and apply schema objects
> Partition[CN=Configuration,DC=intra,DC=mydomain,DC=com]
> objects[402/1618] linked_values[0/0]
> Partition[CN=Configuration,DC=intra,DC=mydomain,DC=com]
> objects[804/1618] linked_values[0/0]
> Partition[CN=Configuration,DC=intra,DC=mydomain,DC=com]
> objects[1206/1618] linked_values[0/0]
> Partition[CN=Configuration,DC=intra,DC=mydomain,DC=com]
> objects[1608/1618] linked_values[0/0]
> Partition[CN=Configuration,DC=intra,DC=mydomain,DC=com]
> objects[1618/1618] linked_values[30/30]
> Replicating critical objects from the base DN of the domain
> Partition[DC=intra,DC=mydomain,DC=com] objects[98/98] 
> linked_values[24/24]
> Partition[DC=intra,DC=mydomain,DC=com] objects[385/287] 
> linked_values[28/28]
> Done with always replicated NC (base, config, schema)
> Replicating DC=DomainDnsZones,DC=intra,DC=mydomain,DC=com
> Partition[DC=DomainDnsZones,DC=intra,DC=mydomain,DC=com] 
> objects[42/42]
> linked_values[0/0]
> Replicating DC=ForestDnsZones,DC=intra,DC=mydomain,DC=com
> Partition[DC=ForestDnsZones,DC=intra,DC=mydomain,DC=com] 
> objects[19/19]
> linked_values[0/0]
> Committing SAM database
> Setting isSynccomonized and dsServiceName
> Cloned domain MYDOMAIN (SID S-1-5-21-1643297388-1269305111-252802184)
> ERROR(<type 'exceptions.IndexError'>): uncaught exception - list index
> out of range
>   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/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])
> 
> -- 
> 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