Networking Forums

Networking Forums > Computer Networking > Linux Networking > samba + ldap

Reply
 
 
Thorko
Guest
Posts: n/a

 
      06-24-2004, 04:21 PM
Hello guys

I try to use samba with ldap authentication. I installed Mandrake 10.0
with samba-ldap-server 2.2.8a and openldap 2.1.30 from the source.

I configured my smb.conf like this
------------------------------------
passdb backend = ldapsam_compat:ldap://127.0.0.1
ldap admin dn = cn=Manager,dc=i3dc,dc=com
ldap suffix = dc=i3dc,dc=com
ldap machine suffix = ou=Computers
ldap user suffix = ou=i3dccommunity
ldap group suffix = ou=Group
add user script = /usr/share/samba/scripts/smbldap-useradd.pl -w -d
/dev/null -g machines -c 'Machine Account' -s /bin/false %u
domain admin group = root Administrator @adm @Administrator @wheel

and my slapd.conf like this
-----------------------------
access to dn=".*,dc=i3dc,dc=com"
by dn="cn=Manager,dc=i3dc,dc=com" write
by self write
by * read
rootdn "cn=Manager,dc=i3dc,dc=com"

rootpw
<secret>
index objectClass eq
index cn pres,sub,eq
index sn pres,sub,eq
index uid pres,sub,eq
index displayName pres,sub,eq
index uidNumber,gidNumber eq
index default sub

after that changes I created the admin password for samba with the
command
smbpasswd -w <secret>

When I try to connect to a samba share with an excisting user in ldap
it comes up with the error message
passdb/secrets.c:fetch_ldap_pw(264)
Jun 23 14:21:34 i3dccommunity smbd[6766]: fetch_ldap_pw: no ldap
secret retrieved!
Jun 23 14:21:34 i3dccommunity smbd[6766]: [2004/06/23 14:21:34, 0]
passdb/pdb_ldap.c:ldap_connect_system(308)
Jun 23 14:21:34 i3dccommunity smbd[6766]: ldap_connect_system:
Failed to retrieve password for cn=Manager,dc=i3dc,dc=com from
secrets.tdb

What's wrong about this?
Please need help immediately
Thanks
thorko
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do all Linux distros have Samba built-in? Detect if Samba installed? Matthew Lincoln Linux Networking 8 11-17-2008 12:11 AM
failed to bind to LDAP server ldap://127.0.0.1: Confidentiality required Bjørn A. Linux Networking 0 02-05-2007 06:37 PM
Samba x NIS x LDAP in a pure client/server Linux env Edilmar Alves Linux Networking 1 04-27-2004 08:47 PM
Is NSS necessary for a Samba-PDC with authentication in LDAP? pgomez Linux Networking 0 04-16-2004 01:05 PM
linux clients for W2K domains. (key words samba kerberos ldap winbind clients) nerak99 Linux Networking 0 01-17-2004 02:21 PM



1 2 3 4 5 6 7 8 9 10 11