I am working on two servers, a samba server and a 389-ds server. Now I want to integrate them so that samba shares are authenticated via ldap server.
I have followed instructions on http://directory.fedoraproject.org/docs/389ds/howto/howto-samba.html and now I have gotten a problem.
As said in the PAM configuration page ( http://directory.fedoraproject.org/docs/389ds/howto/howto-pam.html ) I wanted to run the command
authconfig --enableldap --enableldapauth --disablenis --enablecache
--ldapserver=host.example.com --ldapbasedn=dc=example,dc=com --updateall
But I spotted that there is no file ldap.conf
in /etc
to be updated via this command. Also, the command find / -name ldap.conf
only results in the file /etc/openldap/ldap.conf
that belongs to openldap and is not the point of my job. I also ran the command find / -name *ldap.conf
because I had read that the /etc/ldap.conf
is renamed to /etc/pam_ldap.conf
on centos 6 and I thought that perhaps it is the same on centos 7. But the command results wasn't what I was searching for.
I've also installed nss_ldap
, nslcd
, sssd
and smbldap-tools
on ldap server and started their services. For more clarification, running yum list installed | grep ldap
results in:
ldapjdk.noarch
nss-pam-ldapd.x86_64
openldap.x86_64
openldap-clients.x86_64
openldap-servers.x86_64
sssd-ldap.x86_64
But main problem still exists: the file ldap.conf
does not exist.