[Samba] Samba4 Classicupgrade Failed

Mario Codeniera mario.codeniera at gmail.com
Mon Dec 3 21:46:56 MST 2012


Uprading on a New Server (Running on Centos 6.3, OpenLDAP 2.4.23 migrated
the data from existing server). I dunno know where to fix it, or someone
gave some idea how it works?

[root at gaara samba]# /usr/local/samba/bin/samba-tool domain classicupgrade
--dbdir=/home/ambot/Downloads/var/lib/samba --use-xattrs=yes
--realm=ewanko.local /etc/samba/smb.conf

Reading smb.conf
WARNING: Ignoring invalid value 'cups' for parameter 'printing'
Provisioning
ERROR(<type 'exceptions.AttributeError'>): uncaught exception - 'NoneType'
object has no attribute 'strip'
  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 600, in upgrade_from_samba3
    ldappass = (secrets_db.get_ldap_bind_pw(ldapuser)).strip('\x00')


On Tue, Dec 4, 2012 at 3:21 PM, Mario Codeniera
<mario.codeniera at gmail.com>wrote:

> Hi,
>
> I am stuck on upgrading the current Samba3 to Samba4, currently used Samba
> 3.3.10 and upgraded to Samba 3.4.17 still the same problems below. I also
> try to upgrade the Python 2.4.3 to Python 2.7 still same problems, with the
> OpenLDAP 2.3.43.
>
>
> [root at ewanko]# /usr/local/samba/bin/samba-tool domain classicupgrade
> --dbdir=/var/lib/samba/  --use-xattrs=yes  --realm=ewanko.local
> /etc/samba/smb.conf
> ERROR(exceptions.TypeError): uncaught exception - __init__() got an
> unexpected keyword argument 'epilog'
>   File "/usr/local/samba/bin/samba-tool", line 44, in ?
>     retval = cmd._run("samba-tool", subcommand, *args)
>   File
> "/usr/local/samba/lib/python2.4/site-packages/samba/netcmd/__init__.py",
> line 201, in _run
>     return self.subcommands[subcommand]._run(
>   File
> "/usr/local/samba/lib/python2.4/site-packages/samba/netcmd/__init__.py",
> line 201, in _run
>     return self.subcommands[subcommand]._run(
>   File
> "/usr/local/samba/lib/python2.4/site-packages/samba/netcmd/__init__.py",
> line 142, in _run
>     parser, optiongroups = self._create_parser(argv[0])
>   File
> "/usr/local/samba/lib/python2.4/site-packages/samba/netcmd/__init__.py",
> line 130, in _create_parser
>     prog=prog,epilog=epilog)
>
>
> Are there any links for those successfully upgrade their samba 3 to samba
> 4?
>
>
> Regards,
> Mario
>


More information about the samba mailing list