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
|