[Samba] Another problem with samba4 classicupgrade

Hervé Hénoch h.henoch at isc84.org
Thu Aug 23 03:18:23 MDT 2012


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



More information about the samba mailing list