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

Fix for TACACS on Cumulus Linux #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
7 changes: 6 additions & 1 deletion do_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def main():
# Not very good, but will do for now
# I don't use any other service other than shell to test!
the_command = ""
return_pairs = ""
return_pairs = []

if not len(av_pairs) > 0:
log.info('No av pairs!!')
Expand Down Expand Up @@ -716,6 +716,11 @@ def main():
want_tac_pairs = False
if config.has_option(this_group, "av_pairs"):
temp_av_pairs = get_attribute(config, this_group, "av_pairs", filename)
for av_pair_item in temp_av_pairs:
if "priv-lvl" in av_pair_item:
for tacacs_conf_av_item in av_pairs:
if "priv-lvl" in tacacs_conf_av_item: return_pairs.append(av_pair_item.replace(' ',''))

log.debug('temp_av_pairs = %r', temp_av_pairs)
log.debug('return_pairs = %r', return_pairs)

Expand Down