[Date Prev][Date Next] [Chronological] [Thread] [Top]

Want interesting restrictions to ldap auth on different servers to different users

Hey all!

I made simple ldap auth on my servers via pam_ldap. It's ok. Now I
want to add users that can auth on several servers. BUT. I want to
control on what servers user can login only on ldap server.
I mean user user1 can must login only on server1,server2 and server3.
And user2 can login only on server5 and server2.
Theoretically It's possible to do with "pam_groupdn", set it it
ldap.conf to server name and create as many groups as I have servers
in openldap. Then I add users to some groups that they has to have
access. I can group servers in some group like "city1_group" that
contain all servers in city1 and add user to that group and it will
have access to all servers in city1.

May be anyone know another practice?
Looking for best practice or something like it. Share your experience please.