For information :
I've commented out the line 831 in the file
/usr/local/samba/lib/python2.7/site-packages/samba/upgrade.py :
#shells[username] = get_posix_attr_from_ldap_backend(logger, ldb_object,
base_dn, username, "loginShell")
And the migration was successfull. An explanation would be welcome.
Le 23/08/2012 11:01, Herv? H?noch a ?crit :> Hello
>
> I've used the following command :
>
> /usr/local/samba/bin/samba-tool domain classicupgrade
> --dbdir=/root/samba3/ --realm=sc.isc84.org /root/samba3/smb.conf
>
> And the following error :
>
> ...
> Importing Account policy
> Importing idmap database
> Cannot open idmap database, Ignoring: [Errno 2] No such file or directory
> Exporting posix attributes
> *ERROR(<type 'exceptions.KeyError'>): uncaught exception -
'No such
> element'
> File
>
"/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py",
> line 160, in _run
> return self.run(*args, **kwargs)
> File
>
"/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py",
> line 1013, in run
> useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs)
> File
> "/usr/local/samba/lib/python2.7/site-packages/samba/upgrade.py",
line
> 831, in upgrade_from_samba3
> shells[username] = get_posix_attr_from_ldap_backend(logger,
> ldb_object, base_dn, username, "loginShell")
> File
> "/usr/local/samba/lib/python2.7/site-packages/samba/upgrade.py",
line
> 543, in get_posix_attr_from_ldap_backend
> return msg[0][attr][0]*
>
> Any idea ?
--
Herv? H?noch
Responsable informatique
*---> Attention l'Institut a chang? d'adresse <---*
Institut Sainte Catherine
250 chemin de Baigne-Pieds
CS 80005 --- 84918 AVIGNON cedex 9
T?l?phone : 04.90.27.57.44