summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorDave Olson <olson@cumulusnetworks.com>2018-04-02 11:01:09 -0700
committerDave Olson <olson@cumulusnetworks.com>2018-04-10 12:33:12 -0700
commit5630f132b8898fa1ec3236a0ad796755127881c9 (patch)
tree2480dc22d6bd3e99084aa85e5679e06b71a33ea0 /debian/rules
parent7f2e226bde6e6cd5cc7b29f7385a8c14a9b8b66f (diff)
downloadlibnss-mapuser-5630f132b8898fa1ec3236a0ad796755127881c9.tar.gz
libnss-mapuser-5630f132b8898fa1ec3236a0ad796755127881c9.zip
Add VSA shell:priv-lvl support for privileged radius user logins
Ticket: CM-19457 Reviewed By: roopa Testing Done: lots of variations of login, su, sudo, automated radius tests Now we always read the map files. If session is set, we try that file first, so that a user always sees their name, same as tacplus. If that's the wrong file, read through all of the map files, look for the correct match based on either name+session or auid+session, depending on getpwnam or getpwuid entry point Ignore same set of users as tacacs, including new radius_priv_user account for the privileged RADIUS user. create and delete the mapuser files from libpam-radius-auth now; we need to have the mapping file written early enough for the pam interfaces to get the correct info. Using the pam_script is too limiting, and since we are creating the database in libpam-radius-auth now, we'll delete it there as well to keep things symmetric, so delete the script and the references to the scripts A significant part of this effort was adding getgrent, getgrgid, and getgrnam support, so that the radius users are put into the netshow (unprivileged) and netedit and sudo (privileged) groups at login. A lot of restructuring went in as part of that, and cleaned up some longstanding bugs, including return values for the getpw* routines. Also cleaned up some whitespace issues. Also renamed some globals (debug, min_uid, init_common()) that might collide with other programs, so that when I build unstripped and normal visibility shared libs, they won't collide with programs calling the functions (saw this with "debug" and bgpd, for example).
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules6
1 files changed, 0 insertions, 6 deletions
diff --git a/debian/rules b/debian/rules
index ed7dbc0..cb1f417 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,9 +16,3 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# No configuration needed
override_dh_auto_configure:
-override_dh_install:
- dh_installdirs /usr/share/pam-configs /usr/share/mapuser
- install -p -m 755 pam_script_ses* debian/libnss-mapuser/usr/share/mapuser
- install -p -m 444 debian/mapuser \
- debian/libnss-mapuser/usr/share/pam-configs/
- dh_install