Re: [Samba] samba4 - classicupgrade - problem - passdb.error uncaught exception - Cannot load backend methods for 'ldapsam:ldap://localhost' backend NT_STATUS_CANT_ACCESS_DOMAIN_INFO

2013-08-15 Thread itsaheb
Finally its worked. I just added *following parameter in my samba3 conf
file.

ldap timeout = 50

*
*thanks to
http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#LDAPTIMEOUT

*
*Thank you All.
*
**


2013/8/1 Andrew Bartlett abart...@samba.org

 On Wed, 2013-07-31 at 15:41 +0530, itsaheb wrote:
  Thanks Andrew for your reply.
 
 
  This time i have setup Samba4 on new test server but im still getting
  the same error message:
 
 
  # /usr/local/samba/bin/samba-tool domain classicupgrade
  --dbdir=/samba3/  --use-xattrs=yes
  --realm=mydomain.com /samba3/smb.conf  --dns-backend=BIND9_DLZ

 This is clearly your issue:

  smbldap_search_domain_info: Problem during LDAPsearch: Timed out

 If your LDAP server is timing out, there is no hope Samba can upgrade
 this domain.

 You need to work out why this happens.

 Andrew Bartlett


 --
 Andrew Bartlett
 http://samba.org/~abartlet/
 Authentication Developer, Samba Team   http://samba.org
 Samba Developer, Catalyst IT   http://catalyst.net.nz



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba4 - classicupgrade - problem - passdb.error uncaught exception - Cannot load backend methods for 'ldapsam:ldap://localhost' backend NT_STATUS_CANT_ACCESS_DOMAIN_INFO

2013-07-31 Thread itsaheb
Thanks Andrew for your reply.

This time i have setup Samba4 on new test server but im still getting the
same error message:

# /usr/local/samba/bin/samba-tool domain classicupgrade --dbdir=/samba3/
 --use-xattrs=yes --realm=mydomain.com /samba3/smb.conf
 --dns-backend=BIND9_DLZ

Reading smb.conf
Provisioning
smbldap_search_domain_info: Searching
for:[((objectClass=sambaDomain)(sambaDomainName=MYDOMAIN))]
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
smbldap_search_domain_info: Query was: dc=mydomain,dc=com,
((objectClass=sambaDomain)(sambaDomainName=MYDOMAIN))
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'))

Can you please help on this or direct me in right direction?

Thanks in Advance.

Regards
Saheb


2013/7/30 Andrew Bartlett abart...@samba.org

 On Tue, 2013-07-30 at 10:27 +0530, itsaheb wrote:
  Even after cleaning etc and private directories im still getting the
 same error:
 
 
  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)
 

 I think you may have cleaned too much, or not have the right settings -
 this means that the ldap server listning on port 389 localhost does not
 have a copy of your Samba3 domain.

 Andrew Bartlett

 --
 Andrew Bartlett
 http://samba.org/~abartlet/
 Authentication Developer, Samba Team   http://samba.org
 Samba Developer, Catalyst IT   http://catalyst.net.nz



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba4 - classicupgrade - problem - passdb.error uncaught exception - Cannot load backend methods for 'ldapsam:ldap://localhost' backend NT_STATUS_CANT_ACCESS_DOMAIN_INFO

2013-07-31 Thread Andrew Bartlett
On Wed, 2013-07-31 at 15:41 +0530, itsaheb wrote:
 Thanks Andrew for your reply.
 
 
 This time i have setup Samba4 on new test server but im still getting
 the same error message:
 
 
 # /usr/local/samba/bin/samba-tool domain classicupgrade
 --dbdir=/samba3/  --use-xattrs=yes
 --realm=mydomain.com /samba3/smb.conf  --dns-backend=BIND9_DLZ

This is clearly your issue:

 smbldap_search_domain_info: Problem during LDAPsearch: Timed out

If your LDAP server is timing out, there is no hope Samba can upgrade
this domain.

You need to work out why this happens. 

Andrew Bartlett


-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org
Samba Developer, Catalyst IT   http://catalyst.net.nz


-- 
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

2013-07-29 Thread itsaheb
Even after cleaning etc and private directories im still getting the same error:


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)


Any clues?


Thanks in advance!
Saheb
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba4 - classicupgrade - problem - passdb.error uncaught exception - Cannot load backend methods for 'ldapsam:ldap://localhost' backend NT_STATUS_CANT_ACCESS_DOMAIN_INFO

2013-07-29 Thread Andrew Bartlett
On Tue, 2013-07-30 at 10:27 +0530, itsaheb wrote:
 Even after cleaning etc and private directories im still getting the same 
 error:
 
 
 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)
 

I think you may have cleaned too much, or not have the right settings -
this means that the ldap server listning on port 389 localhost does not
have a copy of your Samba3 domain.

Andrew Bartlett

-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org
Samba Developer, Catalyst IT   http://catalyst.net.nz


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba4 - classicupgrade - problem - passdb.error uncaught exception - Cannot load backend methods for 'ldapsam:ldap://localhost' backend NT_STATUS_CANT_ACCESS_DOMAIN_INFO

2013-02-05 Thread uoL uoL
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] samba4 - classicupgrade - problem - passdb.error uncaught exception - Cannot load backend methods for 'ldapsam:ldap://localhost' backend NT_STATUS_CANT_ACCESS_DOMAIN_INFO

2013-02-04 Thread uoL uoL
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