I Am Netizen
2013-Jul-29 10:19 UTC
[Samba] Samba4 - Classicupgrade - pdb_init_ldapsam: WARNING: Could not get domain info, nor add one to the domain
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
Thomas Simmons
2013-Jul-29 11:48 UTC
[Samba] Samba4 - Classicupgrade - pdb_init_ldapsam: WARNING: Could not get domain info, nor add one to the domain
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 >
Possibly Parallel Threads
- samba4 - classicupgrade - problem - passdb.error uncaught exception - Cannot load backend methods for 'ldapsam:ldap://localhost' backend NT_STATUS_CANT_ACCESS_DOMAIN_INFO
- Problem migrate samba 3 (based on clearos 5.2) into new samba 4 server
- samba-tool domain classicupgrade with LDAP backend
- samba4 - classicupgrade - problem - passdb.error uncaught exception - Cannot load backend methods for 'ldapsam:ldap://localhost' backend NT_STATUS_CANT_ACCESS_DOMAIN_INFO
- Samba + ldap + cannot find domain