Discussion:
[Samba] Classicupgrade of 4.1.17 error: "list index out of range"
MI
2016-06-29 13:42:40 UTC
Permalink
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.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Denis Cardon
2016-06-29 16:08:36 UTC
Permalink
Hi MI,
Post by MI
I'm trying to upgrade to AD from a Samba 4 PDC with openLDAP (on Debian 8).
# 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
Post by MI
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
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
MI
2016-06-29 17:42:04 UTC
Permalink
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.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
MI
2016-06-30 10:33:50 UTC
Permalink
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 --------
Post by MI
I'm trying to upgrade to AD from a Samba 4 PDC with openLDAP (on Debian 8).
# 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.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
MI
2016-07-06 16:00:40 UTC
Permalink
Solved. The fix was to replace

passdb backend = ldapsam

with

passdb backend = ldapsam:"ldap://localhost"



-------- Original Message --------
Post by MI
I'm trying to upgrade to AD from a Samba 4 PDC with openLDAP (on Debian 8).
# 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.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Loading...