Re: [Samba] samba4 - classicupgrade - problem - passdb.error uncaught exception - Cannot load backend methods for 'ldapsam:ldap://localhost' backend NT_STATUS_CANT_ACCESS_DOMAIN_INFO
The problem was that I was not cleaning etc and private directories in order to re-run classicupgrade: rm -rf /usr/local/samba/etc/* rm -rf /usr/local/samba/private/* Now that error doesn't appear anymore. Thanks @RiXtEr from IRC #samba channel ! On Mon, Feb 4, 2013 at 3:06 PM, uoL uoL wmarcos2...@yahoo.com.ar wrote: Hello, I'm migrating to samba4 (samba 4.0.2 in Debian 6.0.6) After copying .tdb files and smb.conf and migrating ldap server to the new server and configured it. When I run: /usr/loca/samba/bin/samba-tool domain classicpugrade --dbdir=samba --user-xattrs=yes --realm=sadom.espel.com samba/smb.conf I get: Reading smb.conf WARNING: The idmap backend option is deprecated WARNING: The idmap uid option is deprecated WARNING: The idmap gid option is deprecated WARNING: Ignoring invalid value 'cups' for parameter 'printing' Provisioning convert_string_talloc: Conversion not supported. 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://localhost 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://localhost' backend (-1073741606,NT_STATUS_CANT_ACCESS_DOMAIN_INFO) File /usr/local/samba/lib/python2.6/site-packages/samba/netcmd/__init__.py, line 175, in _run return self.run(*args, **kwargs) File /usr/local/samba/lib/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/lib/python2.6/site-packages/samba/upgrade.py, line 612, in upgrade_from_samba3 s3db = samba3.get_sam_db() File /usr/local/samba/lib/python2.6/site-packages/samba/samba3/__init__.py, line 390, in get_sam_db return passdb.PDB(self.lp.get('passdb backend')) My smb.conf is: [global] unix charset = LOCALE workgroup= SPEL.COM netbios name = VS002 passdb backend = ldapsam:ldap://localhost username map = /etc/samba/smbusers log level = 1 syslog = 0 log file = /var/log/samba/%m max log size = 50 time server = yes #wmarcos 24 01 08 #privileges = yes #time offset = -30 security = user #agregado por wmarcos 6/2/08 wins support = yes ldap ssl = off add user script= /usr/local/sbin/smbldap-useradd -a -m -P '%u' delete user script = /usr/local/sbin/smbldap-userdel '%u' add group script = /usr/local/sbin/smbldap-groupadd -p '%g' delete group script = /usr/local/sbin/smbldap-groupdel '%g' add user to group script = /usr/local/sbin/smbldap-groupmod -m '%u' '%g' delete user from group script = /usr/local/sbin/smbldap-groupmod -x '%u' '%g' set primary group script = /usr/local/sbin/smbldap-usermod -g '%g' '%u' add machine script = /usr/local/sbin/smbldap-useradd -i '%u' domain logons = yes preferred master = yes domain master= yes local master = yes os level = 80 ldap suffix = dc=spel,dc=com ldap user suffix = ou=usuarios ldap group suffix = ou=grupos ldap machine suffix = ou=equipos ldap passwd sync = yes ldap idmap suffix = ou=usuarios ldap admin dn= cn=admin,dc=spel,dc=com idmap backend = ldap:ldap://localhost idmap uid = 2000~2999 idmap gid = 500~1000 printing = cups encrypt passwords = yes read only = yes follow symlinks = no guest ok = no logon home = logon path = hide unreadable = yes [homes] comment = Directorio personal del usuario %U valid users = %U browseable = no read only = no create mask = 750 directory mask = 740 [netlogon] path = /home/samba/netlogon browseable = no guest ok = yes Any clues? I only found this, but didn't help me solve this issue http://lists.samba.org/archive/samba-technical/2011-September/079286.html Thanks in advance! M. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Fwd: Samba4 4.0.3 classicupgrade - Error converting string to value for line: CurrentVersion
Hello everyone, I'm trying to migrate from samba3 to samba4 (4.0.3 installed from source in a debian squeeze 6.0.6) And I'm getting this error: Setting up the registry convert_string_talloc: Conversion not supported. Error converting string to value for line: CurrentVersion I found this thread in internet about this http://samba.2283325.n4.nabble.com/Samba4-domain-classicupgrade-quot-conversion-not-supported-quot-td4642316.html but couldn't solve my problem since I deleted every tdb and left only secrets.tdb and still gives that error. Any help appreciated Thanks! Marcos. -- complete output -- root@vs002:~# /usr/local/samba/bin/samba-tool domain classicupgrade --dbdir=samba --use-xattrs=yes --realm=sadom.spel.com samba/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 WARNING: Ignoring invalid value 'cups' for parameter 'printing' Provisioning Exporting account policy Exporting groups Exporting users Fixing account c062$ which had both ACB_NORMAL (U) and ACB_WSTRUST (W) set. Account will be marked as ACB_WSTRUST (W), i.e. as a domain member Fixing account c061$ which had both ACB_NORMAL (U) and ACB_WSTRUST (W) set. Account will be marked as ACB_WSTRUST (W), i.e. as a domain member Ignoring group memberships of 'c065$' S-1-5-21-2959502491-3316882024-2455323705-3438: Unable to enumerate group memberships, (-1073741596,NT_STATUS_INTERNAL_DB_CORRUPTION) Skipping wellknown rid=500 (for username=root) Ignoring group memberships of 'c047$' S-1-5-21-2959502491-3316882024-2455323705-3000: Unable to enumerate group memberships, (-1073741596,NT_STATUS_INTERNAL_DB_CORRUPTION) Ignoring group memberships of 'c049$' S-1-5-21-2959502491-3316882024-2455323705-5008: Unable to enumerate group memberships, (-1073741596,NT_STATUS_INTERNAL_DB_CORRUPTION) Ignoring group memberships of 'c005$' S-1-5-21-2959502491-3316882024-2455323705-5012: Unable to enumerate group memberships, (-1073741596,NT_STATUS_INTERNAL_DB_CORRUPTION) Ignoring group memberships of 'c050$' S-1-5-21-2959502491-3316882024-2455323705-5092: Unable to enumerate group memberships, (-1073741596,NT_STATUS_INTERNAL_DB_CORRUPTION) Ignoring group memberships of 'c006$' S-1-5-21-2959502491-3316882024-2455323705-5094: Unable to enumerate group memberships, (-1073741596,NT_STATUS_INTERNAL_DB_CORRUPTION) Ignoring group memberships of 'c036$' S-1-5-21-2959502491-3316882024-2455323705-5096: Unable to enumerate group memberships, (-1073741596,NT_STATUS_INTERNAL_DB_CORRUPTION) Next rid = 5505 Exporting posix attributes Reading WINS database Looking up IPv4 addresses Looking up IPv6 addresses No IPv6 address will be assigned Setting up share.ldb Setting up secrets.ldb Setting up the registry convert_string_talloc: Conversion not supported. Error converting string to value for line: CurrentVersion ERROR(runtime): uncaught exception - (31, 'WERR_GENERAL_FAILURE') 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 841, in upgrade_from_samba3 use_ntvfs=use_ntvfs, skip_sysvolacl=True) File /usr/local/samba/lib/python2.7/site-packages/samba/provision/__init__.py, line 2099, in provision setup_registry(paths.hklm, session_info, lp=lp) File /usr/local/samba/lib/python2.7/site-packages/samba/provision/__init__.py, line 1001, in setup_registry reg.diff_apply(provision_reg) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] samba4 - classicupgrade - problem - passdb.error uncaught exception - Cannot load backend methods for 'ldapsam:ldap://localhost' backend NT_STATUS_CANT_ACCESS_DOMAIN_INFO
Hello, I'm migrating to samba4 (samba 4.0.2 in Debian 6.0.6) After copying .tdb files and smb.conf and migrating ldap server to the new server and configured it. When I run: /usr/loca/samba/bin/samba-tool domain classicpugrade --dbdir=samba --user-xattrs=yes --realm=sadom.espel.com samba/smb.conf I get: Reading smb.conf WARNING: The idmap backend option is deprecated WARNING: The idmap uid option is deprecated WARNING: The idmap gid option is deprecated WARNING: Ignoring invalid value 'cups' for parameter 'printing' Provisioning convert_string_talloc: Conversion not supported. 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://localhost 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://localhost' backend (-1073741606,NT_STATUS_CANT_ACCESS_DOMAIN_INFO) File /usr/local/samba/lib/python2.6/site-packages/samba/netcmd/__init__.py, line 175, in _run return self.run(*args, **kwargs) File /usr/local/samba/lib/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/lib/python2.6/site-packages/samba/upgrade.py, line 612, in upgrade_from_samba3 s3db = samba3.get_sam_db() File /usr/local/samba/lib/python2.6/site-packages/samba/samba3/__init__.py, line 390, in get_sam_db return passdb.PDB(self.lp.get('passdb backend')) My smb.conf is: [global] unix charset = LOCALE workgroup= SPEL.COM netbios name = VS002 passdb backend = ldapsam:ldap://localhost username map = /etc/samba/smbusers log level = 1 syslog = 0 log file = /var/log/samba/%m max log size = 50 time server = yes #wmarcos 24 01 08 #privileges = yes #time offset = -30 security = user #agregado por wmarcos 6/2/08 wins support = yes ldap ssl = off add user script= /usr/local/sbin/smbldap-useradd -a -m -P '%u' delete user script = /usr/local/sbin/smbldap-userdel '%u' add group script = /usr/local/sbin/smbldap-groupadd -p '%g' delete group script = /usr/local/sbin/smbldap-groupdel '%g' add user to group script = /usr/local/sbin/smbldap-groupmod -m '%u' '%g' delete user from group script = /usr/local/sbin/smbldap-groupmod -x '%u' '%g' set primary group script = /usr/local/sbin/smbldap-usermod -g '%g' '%u' add machine script = /usr/local/sbin/smbldap-useradd -i '%u' domain logons = yes preferred master = yes domain master= yes local master = yes os level = 80 ldap suffix = dc=spel,dc=com ldap user suffix = ou=usuarios ldap group suffix = ou=grupos ldap machine suffix = ou=equipos ldap passwd sync = yes ldap idmap suffix = ou=usuarios ldap admin dn= cn=admin,dc=spel,dc=com idmap backend = ldap:ldap://localhost idmap uid = 2000~2999 idmap gid = 500~1000 printing = cups encrypt passwords = yes read only = yes follow symlinks = no guest ok = no logon home = logon path = hide unreadable = yes [homes] comment = Directorio personal del usuario %U valid users = %U browseable = no read only = no create mask = 750 directory mask = 740 [netlogon] path = /home/samba/netlogon browseable = no guest ok = yes Any clues? I only found this, but didn't help me solve this issue http://lists.samba.org/archive/samba-technical/2011-September/079286.html Thanks in advance! M. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba