Skip to content

Commit

Permalink
for exit code 2 using an external script, use AUTHOR_STATUS_ADD
Browse files Browse the repository at this point in the history
This makes it actually work on switches in our case (BudgetEnergy)
  • Loading branch information
administrator committed Apr 2, 2015
1 parent 8e3b559 commit 88b4aac
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion debian/control
Expand Up @@ -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/

Expand Down
13 changes: 13 additions & 0 deletions 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 */
1 change: 1 addition & 0 deletions 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.