By installing libnss-ldap we are able to integrate an Ubuntu server with ldap (openldap). But we are unable to configure ldap group based authentication.
We need to configure in such a way that user from a particular group need only to login.
Please let me know is it possible configure it and please update us the steps or any url.
Thanks
Geo
You can configure detailed access rules in
/etc/security/access.conf
- read the file, it tells you what you need.Note however that this only works if your group mappings are correct from LDAP. To check if this is the case, use
getent group
.The same question I found in stackoverflow, and it is work for me.
The following setting are snippets from stackoverflow post.
vim /etc/pam.d/sshd
/etc/security/access.conf