-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed remove to clean up plugin entries in nsswitch.conf
We weren't removing the tacplus plugin from nsswitch.conf on package remove, now we do. Also cleaned up a bit and use \s instead of [ \t] for whitespace. For postinst, moved into configure case where it belonged. Updated changelog for recent fixes and bumped version
- Loading branch information
Dave Olson
committed
Jun 30, 2017
1 parent
6f721d9
commit 19008ab
Showing
3 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
libnss-tacplus (1.0.3-2) unstable; urgency=low | ||
* Fixed package remove to clean up plugin entries in nsswitch.conf | ||
* New Disabled: added user_homedir config variable to allow per-user | ||
home directories (unless per-command authorization is enabled) | ||
* Fixed configuration files should automatically be reparsed | ||
if they change, for long-lived programs and daemons that use NSS. | ||
|
||
-- Dave Olson <[email protected]> Fri, 30 Jun 2017 13:34:20 -0700 | ||
|
||
libnss-tacplus (1.0.3-1) unstable; urgency=low | ||
* Added config variable "timeout" to limit time attempting to | ||
connect to non-responding TACACS server. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
if [ "$1" = remove ]; then | ||
# Undo the addition of the plugin | ||
if [ -e "/etc/nsswitch.conf" ]; then | ||
sed -i -e '/^passwd:.*tacplus\s/s/tacplus\s//' \ | ||
/etc/nsswitch.conf || true # don't prevent remove on error | ||
fi | ||
fi | ||
|
||
#DEBHELPER# |