Page 1 of 1

Disallow ldap user to log to specific server

Posted: 2012/01/06 13:12:07
by TONAY
I've set up an openldap server and created some posix accounts in it. The clients are CentOS & RedHat servers. All the users defined in the ldap are able to log on any client and that's my problem.

Some of the users should be able to log only on some clients not all of them. Here is an example:

a few users : User1, User2, User3
a few clients : server1, server2, server3.

Now every users can connect on every clients, what i want is :
User1, User3 can connect on every server
User2 can only connect on server2

Is there a way to do that ? Maybe is there an attribute where i could put a list of allowed servers for a posixaccount ?

Regards

Disallow ldap user to log to specific server

Posted: 2012/01/07 13:28:24
by jlehtone
I think there is a "host" ldap attribute in some account schema, but it requires
that the pam (in /etc/ldap.conf) in each server has been told to check that
attribute.

Start by reading the comments from the /etc/ldap.conf. Or have you moved
on to using the sssd?

Re: Disallow ldap user to log to specific server

Posted: 2012/01/10 08:32:41
by TONAY
I haven't move to sssd yet ... I'll look for the host attribute.

Thx

Re: Disallow ldap user to log to specific server

Posted: 2012/01/12 23:07:12
by KermitDaFragger
I think you can use "pam_filter" for that in "/etc/ldap.conf" to require the user to be part of a specific group. That way you can even manage access from your LDAP directory.

Re: Disallow ldap user to log to specific server

Posted: 2012/01/13 22:17:41
by jlehtone
Yes. https://help.ubuntu.com/community/LDAPClientAuthentication