[Samba] Samba4 domain classicupgrade "conversion not supported"

Andrew Bartlett abartlet at samba.org
Wed Jan 16 04:20:32 MST 2013


On Sat, 2013-01-12 at 15:37 +0100, Juan Asensio Sánchez wrote:
> Anyone?

> > Error converting string to value for line:
> > "CurrentVersion"
> > ERROR(runtime): uncaught exception - (31, 'WERR_GENERAL_FAILURE')
> >   File
> > "/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/__init__.py",
> > line 175, in _run
> >     return self.run(*args, **kwargs)
> >   File
> > "/usr/local/samba/lib/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/lib/python2.6/site-packages/samba/upgrade.py",
> > line 841, in upgrade_from_samba3
> >     use_ntvfs=use_ntvfs, skip_sysvolacl=True)
> >   File
> > "/usr/local/samba/lib/python2.6/site-packages/samba/provision/__init__.py",
> > line 2012, in provision
> >     setup_registry(paths.hklm, session_info, lp=lp)
> >   File
> > "/usr/local/samba/lib/python2.6/site-packages/samba/provision/__init__.py",
> > line 939, in setup_registry
> >     reg.diff_apply(provision_reg)
> > The connection to the LDAP server was closed
> >
> >
> > I think the problem is:
> >
> > About to write CurrentVersion with type (null), length 3: 6.1
> > convert_string_talloc: Conversion not supported.
> >
> > Type null? Is normal the suffix hive=NONE? What is the conversion that
> > generates the error?

In short, your registry TDB has an unexpected string in it, so our
conversion code breaks. 

We may not actually need this part of the conversion, and you may not
need the values in the registry anyway.  You could simply not provide
that db, and we will skip it.  Otherwise, hack the script to skip this
step. 

If you could supply your actual database, we may be able to make the
script more robust in the future.

Andrew Bartlett

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




More information about the samba mailing list