LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   samba unable to contact ldap server (https://www.linuxquestions.org/questions/linux-server-73/samba-unable-to-contact-ldap-server-764086/)

vishesh 10-23-2009 11:07 PM

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

TB0ne 10-24-2009 03:31 PM

Quote:

Originally Posted by vishesh (Post 3730520)
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

vishesh 10-26-2009 06:52 AM

Thanks TBOne

I solved the problem , there was some error in smb.conf configuration

TB0ne 10-26-2009 09:25 AM

Quote:

Originally Posted by vishesh (Post 3732759)
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.


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