[Samba] Checking data migration from samba3 to samba4

Andrew Bartlett abartlet at samba.org
Mon Dec 17 14:30:17 MST 2012


On Thu, 2012-12-13 at 17:56 +1300, Mario Codeniera wrote:
> How do we check the data from Samba4 that the data from Samba3 successfully
> migrated?
> 
> I dunno if it successfully migrated coz got these (last part):

No, the database has not been successfully migrated.  The script has not
completed successfully. 

> [root at gaara LiveData]# /usr/local/samba/bin/samba-tool domain
> classicupgrade --dbdir=/srv/LiveData/var_lib_samba/samba
> --use-xattrs=yes --realm=kazekage.sura.sandbox.local
> --dns-backend=SAMBA_INTERNAL /srv/smb.conf
> 
> Once the above files are installed, your Samba4 server will be ready to use
> Admin password:        c#NR4;R>RqfO;VSp5&NKV3A)D+C?r!R
> Server Role:           active directory domain controller
> Hostname:              gaara
> NetBIOS Domain:        KAZEKAGE
> DNS Domain:            kazekage.sura.sandbox.local
> DOMAIN SID:            S-1-5-21-1511653421-423844657-761698953
> Importing WINS database
> Importing Account policy
> Importing idmap database
> Importing groups
> Group already exists sid=S-1-5-21-1511653421-423844657-761698953-512,
> groupname=Domain Admins existing_groupname=Domain Admins, Ignoring.
> Group already exists sid=S-1-5-21-1511653421-423844657-761698953-514,
> groupname=Domain Guests existing_groupname=Domain Guests, Ignoring.
> Group already exists sid=S-1-5-21-1511653421-423844657-761698953-515,
> groupname=Domain Computers existing_groupname=Domain Computers,
> Ignoring.
> Group already exists sid=S-1-5-32-544, groupname=Administrators
> existing_groupname=Administrators, Ignoring.
> Group already exists sid=S-1-5-32-546, groupname=Guests
> existing_groupname=Guests, Ignoring.
> ERROR(<type 'exceptions.KeyError'>): uncaught exception - 'No such element'
>   File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/__init__.py",
> line 175, in _run
>     return self.run(*args, **kwargs)
>   File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/domain.py",
> line 1318, in run
>     useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs)
>   File "/usr/local/samba/lib64/python2.6/site-packages/samba/upgrade.py",
> line 879, in upgrade_from_samba3
>     add_group_from_mapping_entry(result.samdb, g, logger)
>   File "/usr/local/samba/lib64/python2.6/site-packages/samba/upgrade.py",
> line 264, in add_group_from_mapping_entry
>     str(groupmap.sid), groupmap.nt_name, msg[0]['sAMAccountName'][0])
> 

For some reason, we do not have a sAMAccountName attribute on this
record.  We need to work out which record this is, and what is different
about it.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba mailing list