Re: Granualar LDAP host access



On 2007-06-09, Colin Walls <colin@xxxxxxxxxxxxxxxxxxx> wrote:
I have a number of UNIX boxes (say S1, S2 and S3) and a number of users (say
U1, U2). I have set up an LDAP server and am in the later stages of putting
pam_ldap on each of the boxes. What I can't work out is how to allow U1 on
boxes S1 and S2, but not S3 while U2 can access S3 but not S1 or S2.

You can use the pam_access module to limit access to groups and/or
individual users; this can be used whether your users are local or
obtained from LDAP. For whatever reason my systems don't have the man
page for pam_access, but you should be able to find it (and man
access.conf) via Google. Your OS may also have a well-documented
skeleton access.conf file available in /etc/security/access.conf .
I have done this before, and it works fine, but it requires local
administration of /etc/security/access.conf (i.e., while the groups and
users are in LDAP, the list of authorized groups/users for a given host
is located on the host).

You can also use the pam_ldap specific authorization mechanisms. I
can't at the moment find online docs for these mechanisms; if you have
an important LDAP server, you might consider buying the ORA book _LDAP
System Administration_, which talks about these authz mechanisms and a
bunch of other stuff. We have a fairly small LDAP configuration, but
I've found the book very helpful.

--keith

--
kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

.



Relevant Pages

  • Re: OpenLDAP + User Authentication
    ... and you cant really import the passwords from the other ldap server into yours. ... now what you will want to do is set up one ldap server as the masterm and the other as the replica. ... Subject: OpenLDAP + User Authentication ... is not the intended recipient or the employee or agent responsible to ...
    (RedHat)
  • Re: freebsd6 authenticating against openldap 2.4?
    ... machines to get LDAP authentication working. ... Every box was configured differently and ports trees had ... able to run shell accounts on different boxes on a per-user basis, ... LDAP server as user ldap, the system tries to consult all the sources ...
    (freebsd-questions)
  • Re: Migration Of All Users In LDAP Server In LINUX Fedora!
    ... One other command you may need to look at is authconfig...which will ... help set up all the config files necessary to authenticate using ldap ... LDAP server. ... Now we have the data in the format understood by LDAP server. ...
    (Fedora)
  • RE: OpenLDAP + User Authentication
    ... Some users will be unique to the first LDAP, ... the first LDAP directory and the second LDAP directory: ... access to their ldap server and doubtful they will give up their ldap ... I have an LDAP server which I'm using to authenticate my users from. ...
    (RedHat)
  • LDAP server on AIX 5.3
    ... So I'm building an LDAP server on AIX 5.3 ML 4, ... authenticate users both on AIX and on Linux. ... This configures AIX to use the LDAP server you just created for user ...
    (comp.unix.aix)