I am new to the forum and I hope this is the right section to post my question. Otherwise I ask for forgiveness and move the question to where you think is most appropriate.
I installed CentOS 7 core on a VM in virtualbox and I'm trying to connect it to my ldap server. I put in succession the steps I made:
base dc = oxygen, dc = local
ou users
- Checked that there was no AllowUsers on specific user in / etc / ssh / sshd_config
- yum update && yum install openldap openldap-clients nss-pam-ldapd nscd nslcd
- vim / etc / sysconfig / authconfig and modified the following parameters USEPAMACCESS = yes USESSSDAUTH = no FORCELEGACY = yes USESSSD = no
- launched authconfig-tui and checked everything about ldap and entered the correct ldap: // url of my server
- in /etc/nslcd.conf I added map passwd homeDirectory "/ home / $ uid" and map passwd loginShell "/ bin / bash"
- in /etc/pam.d/system-auth added session required pam_mkhomedir.so skel = / etc / skel / umask = 0022
- in /etc/nsswitch.conf added "ldap" at the end of passwd, group, shadow
- in /etc/pam.d/sshd added required account pam_access.so
- added users group to visudo
- restarted nscd and nslcd with systemctl
my test with
Code: Select all
getent passwd steve (which is the ldap user I want to log in with)
Code: Select all
steve: *: 2000: 1005: ldap user: / home / steve: / bin / bash
Code: Select all
su - steve
The LDAP server is working properly, I have other LXC but Debian based machines / containers that connect regularly and do not give problems.
Can you help me? Thank you very much for your answers.
Stephen