[Samba] Samba4 - Classicupgrade - pdb_init_ldapsam: WARNING: Could not get domain info, nor add one to the domain

I Am Netizen iamnetizen at gmail.com
Mon Jul 29 04:19:15 MDT 2013


Hi Team,

*I'm migrating to samba4 (samba 4.0.7) and doing "Upgrading In Place"
**and running classicupgrade; *I have installed openldap-devel...as im
migrating database from ldap.* *

*while doing this am getting the following error message:*


# /usr/local/samba/bin/samba-tool domain classicupgrade
--dbdir=/samba-backup/  --use-xattrs=yes
--realm=mydomain.com/samba-backup/smb.conf  --dns-backend=BIND9_DLZ
Reading smb.conf
Provisioning
smbldap_search_domain_info: Searching
for:[(&(objectClass=sambaDomain)(sambaDomainName=mydomain.com))]
smbldap_open_connection: connection opened
ldap_connect_system: successful connection to the LDAP server
The LDAP server is successfully connected
smbldap_search_domain_info: Problem during LDAPsearch: Timed out
pdb_init_ldapsam: WARNING: Could not get domain info, nor add one to the
domain. We cannot work reliably without it.
pdb backend ldapsam:ldap://x.x.x.x/ did not correctly init (error was
NT_STATUS_CANT_ACCESS_DOMAIN_INFO)
ERROR(<class 'passdb.error'>): uncaught exception - Cannot load backend
methods for 'ldapsam:ldap:/x.x.x.x/' backend
(-1073741606,NT_STATUS_CANT_ACCESS_DOMAIN_INFO)
  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 616, in upgrade_from_samba3
    s3db = samba3.get_sam_db()
  File
"/usr/local/samba/lib64/python2.6/site-packages/samba/samba3/__init__.py",
line 390, in get_sam_db
    return passdb.PDB(self.lp.get('passdb backend'))


Im also cleaning etc and private directories in order to re-run
classicupgrade but no luck.
rm -rf /usr/local/samba/etc/*
rm -rf /usr/local/samba/private/*

Please help.

I AM Netizen


More information about the samba mailing list