latest git version root@sys11:/etc/ssl/local# /usr/local/samba/bin/samba-tool domain classicupgrade --dbdir=/tmp/samba --use-xattrs=yes --realm=ad.vpac.org /tmp/smb.conf Reading smb.conf WARNING: The "idmap backend" option is deprecated WARNING: The "idmap uid" option is deprecated WARNING: The "idmap gid" option is deprecated Unknown parameter encountered: "share modes" Ignoring unknown parameter "share modes" Provisioning Exporting account policy Exporting groups Exporting users Skipping wellknown rid=501 (for username=nobody) Next rid = 101007 Failed to bind - LDAP client internal error: NT_STATUS_UNEXPECTED_NETWORK_ERROR Failed to connect to 'ldapi:///' with backend 'ldapi': (null) Could not open ldb connection to ldapi:///, the error message is: (1, None) Exporting posix attributes ERROR(<type 'exceptions.UnboundLocalError'>): uncaught exception - local variable 'ldb_object' referenced before assignment File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/local/samba/lib/python2.7/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.7/site-packages/samba/upgrade.py", line 800, in upgrade_from_samba3 homes[username] = get_posix_attr_from_ldap_backend(logger, ldb_object, base_dn, username, "homeDirectory") It doesn't connect to the passdb LDAP server, but it just connected to the same server fine to export the users/groups? There is also the issue that it doesn't abort cleanly, and as a result gets confused because ldb_object is never defined. I notice it says "backend 'ldapi'", wondering if that is normal? Or should it be ldapsam?
Seems to work better if I replace: passdb backend = ldapsam:ldapi:/// with: passdb backend = ldapsam:ldap://localhost/ In the source smb.conf