Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed controls in case appropriate configs are missing #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions controls/autofs-browse-mode
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ new_subst disabled \

new_summary 'Browse autofs target mountpoints'

if [ ! -e $CONFIG -a "$*" = "status" ]; then
echo "unknown"
exit 0
fi

control_subst "${CONFIG}" "$*"

5 changes: 4 additions & 1 deletion controls/krb5-conf-ccache
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ new_help kcm 'Kerberos credential manager (requires service like sssd-kcm)'

new_summary 'Kerberos client default credential cache'

test -f "$CONFIG" || exit 2
if [ ! -e $CONFIG -a "$*" = "status" ]; then
echo "unknown"
exit 0
fi

if ! is_builtin_mode "$1"; then
case "$1" in
Expand Down
5 changes: 5 additions & 0 deletions controls/ssh-gssapi-auth
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@ new_subst enabled \
'^[[:space:]]*GSSAPIAuthentication[[:space:]]+yes$' \
's/[[:space:]#]*\(GSSAPIAuthentication\)[[:space:]]\+.*/ \1 yes/'

if [ ! -e $CONFIG -a "$*" = "status" ]; then
echo "unknown"
exit 0
fi

control_subst "${CONFIG}" "$*" || exit 1

5 changes: 5 additions & 0 deletions controls/sshd-allow-groups-list
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ new_help remoteonly 'Allow SSH Access to group remote only'

new_summary 'OpenSSH server list of allowed groups configuration'

if [ ! -e $CONFIG -a "$*" = "status" ]; then
echo "unknown"
exit 0
fi

control_subst "$CONFIG" "$*"
5 changes: 5 additions & 0 deletions controls/sshd-gssapi-auth
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@ new_help default 'Disable GSSAPI authentication (Single Sign-On feature)'

new_summary 'GSSAPI authentication mechanism in SSHD'

if [ ! -e $CONFIG -a "$*" = "status" ]; then
echo "unknown"
exit 0
fi

control_subst "${CONFIG}" "$*"

5 changes: 5 additions & 0 deletions controls/sssd-ad-gpo-access-control
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,10 @@ new_subst disabled \

new_summary 'SSSD option specifies the operation mode for GPO-based access control functionality'

if [ ! -e $CONFIG -a "$*" = "status" ]; then
echo "unknown"
exit 0
fi

control_subst "${CONFIG}" "$*"

5 changes: 5 additions & 0 deletions controls/sssd-ad-gpo-ignore-unreadable
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ new_subst disabled \

new_summary 'Ignore policy for SSSD if GPO (group policy AD object) templates (GPT) are not readable for SSSD'

if [ ! -e $CONFIG -a "$*" = "status" ]; then
echo "unknown"
exit 0
fi

control_subst "${CONFIG}" "$*"

5 changes: 5 additions & 0 deletions controls/sssd-cache-credentials
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ new_subst disabled \

new_summary 'Determines SSSD user credentials are also cached in the local LDB cache'

if [ ! -e $CONFIG -a "$*" = "status" ]; then
echo "unknown"
exit 0
fi

control_subst "${CONFIG}" "$*"