LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-19-2015, 11:42 AM   #1
jvermeulen
Member
 
Registered: Nov 2014
Posts: 91

Rep: Reputation: Disabled
configure sssd on Centos6


Hello All,

I would like to set up sssd on Centos6.
Previously I only connected servers to ldap using nslcd
Now I would like also to connect laptops using sssd.

To do this, I turned to this guide:
http://www.techrockdo.com/linux/cent...tion-with-sssd
So I ended up with this /etc/sssd/sssd.conf

[sssd]
config_file_version = 2
services = nss, pam
domains = LDAP

[nss]
filter_users = root,named,avahi,haldaemon,dbus,radiusd,news,nscd
[pam]

[domain/LDAP]
id_provider = ldap
auth_provider = ldap
chpass_provider = ldap
#access_provider = ldap


ldap_schema = rfc2307
ldap_uri = ldap://192.168.250.10
ldap_search_base = dc=xxxxxx,dc=xx
ldap_user_search_base = ou=xxxxxx,dc=xxxxx,dc=be
#ldap_group_search_base = ou=Groups,dc=xxxxx,dc=xx
enumerate = true
cache_credentials = true
ldap_tls_reqcert = never
#ldap_tls_cacertdir = /etc/openldap/cacerts

NOTE: ldap-server is reachable via openvpn ( 192.168.250.10 ) and we
don't have tls/ssl

I also edited the other files mentioned in the guide:
/etc/nsswitch.conf
/etc/pam.d/password-auth-ac
/etc/pam.d/system-auth-ac

So in the end, I am able to see user id en groups:

[root@centos-client ~]# id evervaet
uid=30407(evervaet) gid=100(users) groepen=100(users)

but that's about it. I'm unable to log in;
Permission denied

[root@centos-client ~]# ldapsearch -x -b "dc=xxx,dc=be"
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

Can anyone help me with this?

Thanks, Johan
 
Old 03-12-2015, 10:05 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You could try using authconfig .. it should work out of the box.

Maybe start with this example and adjust if required:
Code:
authconfig \
--enableldap \
--enableldapauth \
--ldapserver=${DC1},${DC2} \
--ldapbasedn=${BASEDN} \
--disableldaptls \
--enablemkhomedir \
--enablesssd \
--enablesssdauth \
--update
 
Old 03-20-2015, 06:01 AM   #3
jvermeulen
Member
 
Registered: Nov 2014
Posts: 91

Original Poster
Rep: Reputation: Disabled
Hello Kbp,

thanks very much for the reply.
Apologies for not following up sooner.
I am going to test this now.

greetings, Johan
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
encfs will not configure on centos6 unkie888 Linux - Software 2 08-06-2015 03:41 AM
[SOLVED] Unable to Configure Quotas in RHEL6 & CentOS6- quotecheck returns error message zen.pwning Red Hat 2 10-29-2014 01:41 AM
sshd with sssd help needed Aaron.D Linux - Server 7 11-15-2012 11:52 PM
[SOLVED] SSSD and AD with RHEL 6 ZeroCleric Linux - Server 12 11-09-2012 03:43 PM
SSSD fails on compile igor012 Gentoo 3 11-04-2012 04:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration