Giter Site home page Giter Site logo

libtacplus-map's Introduction

libtacplus_map v1.0.0
June 22, 2016

This library supports local mapping of users authenticated via TACACS with
the pam_tacplus module.

The TACACS+ users do not need entries in /etc/passwd to supply home directory, uid,
and gid information.

This is done by creating local users called tacacs0 ... tacacs15 (at least
one, but up to all 16).   The tacacs user's privilege level is used to select
the local tacacsN user, starting with an exact match, and working down to 0.

A new libtacplus_map library (map_tacplus_user.c) writes the mappings into
a local file in /run, and cleans up on exit (for unexpected exits without
cleanups, the file is validated and cleaned up whenever a new entry is added
or an old entry removed).

audit_[gs]etloginuid() is used to set a stable uid identifier as well as
triggering the /proc/$$/sessionid in the process.  These are both recorded
in the mapping file, along with tty, rhost, etc.

Also see the comments about immutable loginuid in Pam.d.common-example
in the libpam-tacplus package.

A separate package libnss_tacplus uses the mapping library to do lookups by
both name and uid.  uid lookups are only possible while a tacacs user is
logged in.

If multiple tacacs users at the same privilege level are logged in, the
current behavior is that is that if a call is done from within the login
session, the correct (login) name will be returned.   If from outside the
session (audit uid and/or session don't match in the mapping file), the name
from first map entry is used, much like normal systems where multiple users
have the same UID.

Enabled -Werror to catch errors early (and fixed a few related items).

This code is based in the pam_tacplus plugin, written by
Pawel Krawczyk <[email protected]> and Jeroen Nijhof
<[email protected]>, as well as others.   It is based
on version pam_tacplus version 1.3.9.  It uses the libtac
as found in pam_tacplus.  A few minor changes have been made,
and libtac is built as a static archive library.


Author:
~~~~~~~

Dave Olson <[email protected]>

libtacplus-map's People

Contributors

c-po avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.