I'm trying to convert my samba3 domain to samba4 AD with samba-tool, but i'm getting an error and i can' t find anything about it on google. I've enabled the log level 4 on smb.conf and here's what i got: Home server: PANDORA init_sam_from_ldap: Entry found for user: DIRET-ESTAG$ Home server: PANDORA init_sam_from_ldap: Entry found for user: dsegato Home server: PANDORA init_sam_from_ldap: Entry found for user: lesley Home server: PANDORA ERROR(<type 'exceptions.AttributeError'>): uncaught exception - 'passdb.Samu' object has no attribute 'acct_flags' 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 722, in upgrade_from_samba3 % (user.acct_flags, username, [ I've copied my .tdb files to a new test server.....also, i'm using ldap backend on s3.
Have you tried deleting the 'lesley' user before performing the upgrade? The error say's that user has no "acct_flags". You could try locking and unlocking this account before the upgrade. Maybe that will create the acct_flags attribute if it really doesn't exist? I had to delete one computer from my S3 domain before performing the upgrade because the upgrade kept failing while processing that specific entry. Thanks, Thomas On Mon, Feb 11, 2013 at 7:33 AM, Jonis Maurin Cear? <jmceara at gmail.com>wrote:> I'm trying to convert my samba3 domain to samba4 AD with samba-tool, > but i'm getting an error and i can' t find anything about it on > google. > > I've enabled the log level 4 on smb.conf and here's what i got: > > Home server: PANDORA > init_sam_from_ldap: Entry found for user: DIRET-ESTAG$ > Home server: PANDORA > init_sam_from_ldap: Entry found for user: dsegato > Home server: PANDORA > init_sam_from_ldap: Entry found for user: lesley > Home server: PANDORA > ERROR(<type 'exceptions.AttributeError'>): uncaught exception - > 'passdb.Samu' object has no attribute 'acct_flags' > 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 722, in upgrade_from_samba3 > % (user.acct_flags, username, > [ > > > I've copied my .tdb files to a new test server.....also, i'm using > ldap backend on s3. > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Andrew Bartlett
2013-Feb-11 22:32 UTC
[Samba] [PATCH] Fix classicupgrade error message (was Re: Classicupgrade not work)
On Mon, 2013-02-11 at 10:33 -0200, Jonis Maurin Cear? wrote:> I'm trying to convert my samba3 domain to samba4 AD with samba-tool, > but i'm getting an error and i can' t find anything about it on > google. > > I've enabled the log level 4 on smb.conf and here's what i got: > > Home server: PANDORA > init_sam_from_ldap: Entry found for user: DIRET-ESTAG$ > Home server: PANDORA > init_sam_from_ldap: Entry found for user: dsegato > Home server: PANDORA > init_sam_from_ldap: Entry found for user: lesley > Home server: PANDORA > ERROR(<type 'exceptions.AttributeError'>): uncaught exception - > 'passdb.Samu' object has no attribute 'acct_flags' > 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 722, in upgrade_from_samba3 > % (user.acct_flags, username, > [ > > > I've copied my .tdb files to a new test server.....also, i'm using > ldap backend on s3.I do apologise, there is an error in the classicupgrade script which means that instead of printing an informative error, we print this backtrace. I also attach another fix I've had in my local tree for a while, to fix the error when we can't find the LDAP secrets. Please check this improves the error, and then if someone could review and/or push this to master I would appreciate it. Thanks, Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-samba-tool-domain-classicupgrade-Fix-typo-in-error-p.patch Type: text/x-patch Size: 1049 bytes Desc: not available URL: <http://lists.samba.org/pipermail/samba/attachments/20130212/46676bf3/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-samba-tool-domain-classicupgrade-Print-a-better-erro.patch Type: text/x-patch Size: 1357 bytes Desc: not available URL: <http://lists.samba.org/pipermail/samba/attachments/20130212/46676bf3/attachment-0001.bin>