[Samba] samab unable to contact ldap or something else

vishesh kumar linuxtovishesh at gmail.com
Fri Oct 23 22:28:37 MDT 2009

Dear all

I am trying to configure samba+ldap on our rhel 5.2 server. samba version is
3.0.33-3.14.el5 and openldap version is openldap-2.3.43 . My samba
configuration is

#======================= Global Settings =======================

workgroup = abp
server string = abpdel1
netbios name = abp
security = user
passdb backend = ldapsam:ldap://
ldap suffix = "dc=abp=,dc=del"
ldap machine suffix = ou=Computers,dc=abp,dc=del
ldap user suffix = ou=People,dc=abp,dc=del
ldap group suffix = ou=Group,dc=abp,dc=del
ldap admin dn= "cn=Manager,dc=abp,dc=del"
domain master = yes
domain logons = yes
add user script = /usr/sbin/smbldap-useradd "%u"
add group script = /usr/sbin/smbldap-groupadd "%g"
add machine script = /usr/sbin/smbldap-useradd -w "%u"
delete user script = /usr/sbin/smbldap-userdel "%u"
delete group script = /usr/sbin/smbldap-groupdel "%g"
local master = yes
os level = 65
preferred master = yes

#============================ Share Definitions ==========

comment = Network Logon Service
path = /var/lib/samba/netlogon
guest ok = yes
writable = no
share modes = no
My ldap configuration is ok because i tested ldap separately but my samba
service die automatically by generationg following error messages in

  smbldap_search_domain_info: Problem during LDAPsearch: Time limit exceeded
  smbldap_search_domain_info: Query was: dc=abp=,dc=del,
  pdb_init_ldapsam: WARNING: Could not get domain info, nor add one to the
 pdb_init_ldapsam: Continuing on regardless, will be unable to allocate new
users/groups, and will risk BDCs having inconsistant SIDs
   svcctl_init_keys: key lookup failed! (WERR_ACCESS_DENIED)
  abpdel1 smbd[3664]: [2009/10/22 15:43:23, 0] smbd/server.c:main
   abpdel1 smbd[3664]: ERROR: failed to setup guest info.

Any suggestions in this regard will greatly appreciated


More information about the samba mailing list