0

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.

Mohammad
  • 103
  • 4
  • Why is this a problem ? Are you saying that the authconfig command doesn't create the conf file or that you don't want to run the authconfig command because the conf file doesn't exist? – user9517 Dec 15 '15 at 06:57
  • @lain In the documentation page, it is said that `authconfig` command will update `ldap.conf` file and won't create it. However, I ran the command and the file wasn't created. – Mohammad Dec 15 '15 at 09:27
  • Running `yum whatprovides /etc/ldap.conf` returns `No matches found` which suggests that there are no packages that contain the file. Try creating a blank file touch /etc/ldap.conf. – user9517 Dec 15 '15 at 10:00

0 Answers0