Browse files

for exit code 2 using an external script, use AUTHOR_STATUS_ADD

This makes it actually work on switches in our case (BudgetEnergy)
  • Loading branch information...
1 parent 8e3b559 commit 88b4aac5ba53916bf78ea6ae0eaaf83e5221304c administrator committed Apr 2, 2015
Showing with 15 additions and 1 deletion.
  1. +1 −1 debian/control
  2. +13 −0 debian/patches/author-status-always-add.diff
  3. +1 −0 debian/patches/series
View
2 debian/control
@@ -2,7 +2,7 @@ Source: tacacs+
Section: net
Priority: extra
Maintainer: Henry-Nicolas Tourneur <henry.nicolas@tourneur.be>
-Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.2), autotools-dev, flex, m4, bison, libwrap0-dev, libpam0g-dev, quilt, hardening-wrapper, chrpath
+Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1), autotools-dev, flex, m4, bison, libwrap0-dev, libpam0g-dev, quilt, hardening-wrapper, chrpath
Standards-Version: 3.9.3
Homepage: http://www.shrubbery.net/tac_plus/
View
13 debian/patches/author-status-always-add.diff
@@ -0,0 +1,13 @@
+Index: tacacs-plus/do_author.c
+===================================================================
+--- tacacs-plus.orig/do_author.c 2014-07-14 17:23:01.882703543 +0200
++++ tacacs-plus/do_author.c 2014-07-14 17:23:58.762705502 +0200
+@@ -252,7 +252,7 @@
+ /* and install the new set of AV pairs as output */
+ data->output_args = out_args;
+ data->num_out_args = out_cnt;
+- data->status = AUTHOR_STATUS_PASS_REPL;
++ data->status = AUTHOR_STATUS_PASS_ADD;
+ return(1); /* no more processing required */
+
+ case 3: /* deny, but return attributes and server-msg to NAS */
View
1 debian/patches/series
@@ -1,2 +1,3 @@
fix_hurd.patch
extend_default_authentication.patch
+author-status-always-add.diff

0 comments on commit 88b4aac

Please sign in to comment.