[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 09:08:24 MDT 2013


Sorry, that was copy-past error.

Actual command im using is this -

/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

as per the instructions from
https://wiki.samba.org/index.php/Samba4/samba-tool/domain/classicupgrade/HOWTO

# /usr/local/samba/bin/samba-tool  domain  classicupgrade
--dbdir=/path/to/samba3/tdbfiles   --use-xattrs=yes
  --realm=myname.org   /path/to/samba3.conf

Parvez


2013/7/29 Thomas Simmons <twsnnva at gmail.com>

> I would guess this is your problem:
>
> --realm=mydomain.com/samba-backup/smb.conf
>
> Should be --realm=mydomain.com
>


On Mon, Jul 29, 2013 at 6:19 AM, I Am Netizen <iamnetizen at gmail.com> wrote:

> 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
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list