LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-23-2009, 11:07 PM   #1
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 658

Rep: Reputation: 66
samba unable to contact ldap server


Today i am trying to setup samba+ldap on one of RHEL 5.2 server, and samba is unable to contact ldap and generate following error in /var/log/samba/smbd.log

Oct 22 15:43:23 abpdel1 smbd[3664]: [2009/10/22 15:43:23, 0] services/services_db.c:svcctl_init_keys(420)
Oct 22 15:43:23 abpdel1 smbd[3664]: svcctl_init_keys: key lookup failed! (WERR_ACCESS_DENIED)
Oct 22 15:43:23 abpdel1 smbd[3664]: [2009/10/22 15:43:23, 0] smbd/server.c:main
Oct 22 15:43:23 abpdel1 smbd[3664]: ERROR: failed to setup guest info.

My smb.conf is

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

[global]
workgroup = abp
server string = abcdel1
netbios name = abc
security = user
passdb backend = ldapsam:ldap://127.0.0.1
ldap suffix = "dc=abc=,dc=del"
ldap machine suffix = ou=Computers,dc=abc,dc=del
ldap user suffix = ou=People,dc=abc,dc=del
ldap group suffix = ou=Group,dc=abc,dc=del
ldap admin dn= "cn=Manager,dc=abc,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 ==========

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
guest ok = yes
writable = no
share modes = no

Last edited by vishesh; 10-26-2009 at 04:47 AM.
 
Old 10-24-2009, 03:31 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,605

Rep: Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570
Quote:
Originally Posted by vishesh View Post
Today i am trying to setup samba+ldap on one of RHEL 5.2 server, and samba is unable to contact ldap and generate following error in /var/log/samba/smbd.log

Oct 22 15:43:23 abpdel1 smbd[3664]: [2009/10/22 15:43:23, 0] services/services_db.c:svcctl_init_keys(420)
Oct 22 15:43:23 abpdel1 smbd[3664]: svcctl_init_keys: key lookup failed! (WERR_ACCESS_DENIED)
Oct 22 15:43:23 abpdel1 smbd[3664]: [2009/10/22 15:43:23, 0] smbd/server.c:main
Oct 22 15:43:23 abpdel1 smbd[3664]: ERROR: failed to setup guest info.
Google has quite a bit on this. Have you tried to look up the error there? Do you have the mandatory groups on your LDAP database?
Code:
Domain Users
Domain Guests
Domain Admins
Did you set up the appropriate rights with the "net rights grant" command?

Take a look at the smbldap-tools scripts:

https://gna.org/projects/smbldap-tools/

Chapter 5 of the "Samba 3 by Example" book can be very useful to you. It
deals Samba with LDAP configuration. Look here:

http://www.samba.org/samba/docs/man/...ide/happy.html
 
Old 10-26-2009, 06:52 AM   #3
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 658

Original Poster
Rep: Reputation: 66
Thanks TBOne

I solved the problem , there was some error in smb.conf configuration
 
Old 10-26-2009, 09:25 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,605

Rep: Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570
Quote:
Originally Posted by vishesh View Post
Thanks TBOne

I solved the problem , there was some error in smb.conf configuration
It would help others if you posted the exact solution, so we'd all know how to solve the problem. Clicking "thanks" wouldn't hurt either.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP: Can't contact master ldap server rulirahm Linux - Networking 2 07-14-2014 02:02 AM
Ubuntu Hardy (php-ldap):Can't contact LDAP server eantoranz Programming 7 12-02-2008 06:40 PM
What causes -> Cannot contact LDAP server? factos Linux - Newbie 4 11-15-2007 09:18 AM
Can't contact ldap server(-1) justsimran Linux - General 0 06-14-2007 06:22 AM
ldap_sasl_interactive_bind_s: Can't contact LDAP server (81) Jingle Linux - Software 4 01-08-2004 12:41 PM


All times are GMT -5. The time now is 11:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration