MI
2016-Jun-29 13:42 UTC
[Samba] Classicupgrade of 4.1.17 error: "list index out of range"
I'm trying to upgrade to AD from a Samba 4 PDC with openLDAP (on Debian 8). I'm stuck at this very unhelpful error: # samba-tool domain classicupgrade --dbdir=/usr/local/samba.PDC/dbdir/ --use-xattrs=yes --realm=ad.mydomain.tld --dns-backend=SAMBA_INTERNAL --option="interfaces=lo eth2" --option="bind interfaces only=yes" /etc/samba/smb.conf.PDC Reading smb.conf Provisioning Exporting account policy Exporting groups Exporting users Skipping wellknown rid=501 (for username=nobody) Next rid = 3307 ERROR(<type 'exceptions.IndexError'>): uncaught exception - list index out of range File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 1321, in run useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs) File "/usr/lib/python2.7/dist-packages/samba/upgrade.py", line 796, in upgrade_from_samba3 urls = samba3.lp.get("passdb backend").split(":",1)[1].strip('"') Any ideas on how to fix it or at least find some better clue? # samba --version Version 4.1.17-Debian # lsb_release -d Description: Debian GNU/Linux 8.3 (jessie) Thanks.
Denis Cardon
2016-Jun-29 16:08 UTC
[Samba] Classicupgrade of 4.1.17 error: "list index out of range"
Hi MI,> I'm trying to upgrade to AD from a Samba 4 PDC with openLDAP (on Debian 8). > > I'm stuck at this very unhelpful error: > > # samba-tool domain classicupgrade --dbdir=/usr/local/samba.PDC/dbdir/ > --use-xattrs=yes --realm=ad.mydomain.tld --dns-backend=SAMBA_INTERNAL > --option="interfaces=lo eth2" --option="bind interfaces only=yes" > /etc/samba/smb.conf.PDC > Reading smb.conf > Provisioning > Exporting account policy > Exporting groups > Exporting users > Skipping wellknown rid=501 (for username=nobody) > Next rid = 3307 > ERROR(<type 'exceptions.IndexError'>): uncaught exception - list > index out of range > File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", > line 175, in > _run > return self.run(*args, **kwargs) > File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", > line 1321, in run > useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs) > File "/usr/lib/python2.7/dist-packages/samba/upgrade.py", line > 796, in > upgrade_from_samba3 > urls = samba3.lp.get("passdb backend").split(":",1)[1].strip('"')could you please post the "passdb backend" line of your /etc/samba/smb.conf.PDC file? (or even better post the whole file)? Thanks, Denis> > > Any ideas on how to fix it or at least find some better clue? > > # samba --version > Version 4.1.17-Debian > > # lsb_release -d > Description: Debian GNU/Linux 8.3 (jessie) > > > > Thanks. >-- Denis Cardon Tranquil IT Systems Les Espaces Jules Verne, bâtiment A 12 avenue Jules Verne 44230 Saint Sébastien sur Loire tel : +33 (0) 2.40.97.57.55 http://www.tranquil-it-systems.fr
MI
2016-Jun-29 17:42 UTC
[Samba] Classicupgrade of 4.1.17 error: "list index out of range"
> could you please post the "passdb backend" line of your /etc/samba/smb.conf.PDC > file? (or even better post the whole file)? >Here it is: # cat /etc/samba/smb.conf.PDC [global] workgroup = MYDOMAIN netbios name = LENNY2 server string = %h server interfaces = 127.0.0.0/8, 192.168.99.10/24 bind interfaces only = yes server role = classic primary domain controller map to guest = Bad User passdb backend = ldapsam syslog = 0 log file = /var/log/samba/log.%m server max protocol = NT1 time server = Yes unix extensions = No load printers = No printcap name = /dev/null disable spoolss = Yes show add printer wizard = No add machine script = /usr/sbin/smbldap-useradd -w "%u" logon script = logon-%a.bat logon path = \\%N\%U\profile-%a logon drive = H: domain logons = Yes os level = 64 preferred master = Yes domain master = Yes wins support = Yes ldap admin dn = cn=admin,dc=mydomain,dc=lan ldap group suffix = ou=Groups ldap machine suffix = ou=Computers ldap passwd sync = yes ldap suffix = dc=frenetic,dc=lan ldap ssl = no ldap user suffix = ou=People ldap debug level = 0 panic action = /usr/share/samba/panic-action %d ldapsam:trusted = yes idmap config * : backend = tdb acl allow execute always = Yes create mask = 0775 directory mask = 02775 force unknown acl user = Yes print notify backchannel = No printing = bsd print command = lpr -r -P'%p' %s lpq command = lpq -P'%p' lprm command = lprm -P'%p' %j hide files = /Maildir/desktop.ini/RECYCLER/PUTTY.RND/lost+found/ veto oplock files = /*.doc*/*.DOC*/*.xls*/*.XLS*/*.mdb/*.MDB/~$*/ csc policy = disable dos filemode = Yes [netlogon] comment = Network Logon Service path = /etc/samba/netlogon write list = @admins read only = No [homes] comment = Home Directories read only = No create mask = 0700 directory mask = 0700 browseable = No etc. with all the shares.
MI
2016-Jun-30 10:33 UTC
[Samba] Classicupgrade of 4.1.17 error: "list index out of range"
I retried after deleting all machines, groups and people from LDAP, to see if the problem was hidden in there. But apparently not, and I still get the same error. After adding --debuglevel=10, I see lots of debug messages during the LDAP search, but nothing more after that: # samba-tool domain classicupgrade --debuglevel=10 --dbdir=/usr/local/samba.PDC/dbdir/ --use-xattrs=yes --realm=ad.mydomain.tld --dns-backend=SAMBA_INTERNAL --option="interfaces=lo eth2" --option="bind interfaces only=yes" /etc/samba/smb.conf.PDC ... smbldap_search_paged: search was successful Next rid = 1000 ERROR(<type 'exceptions.IndexError'>): uncaught exception - list index out of range File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 1321, in run useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs) File "/usr/lib/python2.7/dist-packages/samba/upgrade.py", line 796, in upgrade_from_samba3 urls = samba3.lp.get("passdb backend").split(":",1)[1].strip('"') The connection to the LDAP server was closed -------- Original Message --------> I'm trying to upgrade to AD from a Samba 4 PDC with openLDAP (on Debian 8). > > I'm stuck at this very unhelpful error: > > # samba-tool domain classicupgrade --dbdir=/usr/local/samba.PDC/dbdir/ > --use-xattrs=yes --realm=ad.mydomain.tld --dns-backend=SAMBA_INTERNAL > --option="interfaces=lo eth2" --option="bind interfaces only=yes" > /etc/samba/smb.conf.PDC > Reading smb.conf > Provisioning > Exporting account policy > Exporting groups > Exporting users > Skipping wellknown rid=501 (for username=nobody) > Next rid = 3307 > ERROR(<type 'exceptions.IndexError'>): uncaught exception - list index out of range > File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in > _run > return self.run(*args, **kwargs) > File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 1321, in > run > useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs) > File "/usr/lib/python2.7/dist-packages/samba/upgrade.py", line 796, in > upgrade_from_samba3 > urls = samba3.lp.get("passdb backend").split(":",1)[1].strip('"') > > > Any ideas on how to fix it or at least find some better clue? > > # samba --version > Version 4.1.17-Debian > > # lsb_release -d > Description: Debian GNU/Linux 8.3 (jessie) > > > > Thanks. >
MI
2016-Jul-06 16:00 UTC
[Samba] Classicupgrade of 4.1.17 error: "list index out of range"
Solved. The fix was to replace passdb backend = ldapsam with passdb backend = ldapsam:"ldap://localhost" -------- Original Message --------> I'm trying to upgrade to AD from a Samba 4 PDC with openLDAP (on Debian 8). > > I'm stuck at this very unhelpful error: > > # samba-tool domain classicupgrade --dbdir=/usr/local/samba.PDC/dbdir/ > --use-xattrs=yes --realm=ad.mydomain.tld --dns-backend=SAMBA_INTERNAL > --option="interfaces=lo eth2" --option="bind interfaces only=yes" > /etc/samba/smb.conf.PDC > Reading smb.conf > Provisioning > Exporting account policy > Exporting groups > Exporting users > Skipping wellknown rid=501 (for username=nobody) > Next rid = 3307 > ERROR(<type 'exceptions.IndexError'>): uncaught exception - list index out of range > File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in > _run > return self.run(*args, **kwargs) > File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 1321, in > run > useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs) > File "/usr/lib/python2.7/dist-packages/samba/upgrade.py", line 796, in > upgrade_from_samba3 > urls = samba3.lp.get("passdb backend").split(":",1)[1].strip('"') > > > Any ideas on how to fix it or at least find some better clue? > > # samba --version > Version 4.1.17-Debian > > # lsb_release -d > Description: Debian GNU/Linux 8.3 (jessie) > > > > Thanks. >
Maybe Matching Threads
- classicupgrade fails on rc6, worked on rc5
- 'set_simple_acl' referenced before assignment in classicupgrade
- Clussicupgrade tdbsam Unable to load modules for /var/lib/samba/private/secrets.ldb
- Samba4 4.0.3 classicupgrade - Error converting string to value for line: "CurrentVersion"
- Issue with computer accounts with classicupgrade