any news on the s3 to s4 migration errors?

Andrew Bartlett abartlet at
Sat Nov 10 17:03:44 MST 2012

On Sat, 2012-11-10 at 10:07 +0200, Chirana Gheorghita Eugeniu Theodor
> Here is the error.
> I also sent a mail to the list days ago with the complete output in a zip.
> ERROR(<type 'exceptions.KeyError'>): uncaught exception - 'No such element'
>   File "/samba/lib64/python2.6/site-packages/samba/netcmd/",
> line 175, in _run
>     return*args, **kwargs)
>   File "/samba/lib64/python2.6/site-packages/samba/netcmd/", line
> 1318, in run
>     useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs)
>   File "/samba/lib64/python2.6/site-packages/samba/", line 799,
> in upgrade_from_samba3
>     shells[username] = get_posix_attr_from_ldap_backend(logger, ldb_object,
> base_dn, username, "loginShell")
>   File "/samba/lib64/python2.6/site-packages/samba/", line 545,
> in get_posix_attr_from_ldap_backend
>     return msg[0][attr][0]
> The connection to the LDAP server was closed
> Is the loginShell parameter i have in my ldap the problem?

Yes, it is.  We should not require that element, but for now we do.  We
need to catch the KeyError and skip that attribute in that case.

Andrew Bartlett

Andrew Bartlett                      
Authentication Developer, Samba Team 

More information about the samba-technical mailing list