-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add IPv6 Support in TACACS #3395
Add IPv6 Support in TACACS #3395
Conversation
What is the addition " __vrfname = strdup(*argv + 4);" for ? |
There is a problem in applying the patch. HEAD is now at 8dddbec... fix links |
looks like the build is broken. |
* Add patch to support IPv6 * Add support for IPv6 * Remove in-correct changes by IPv6 support patch
* Add patch to support IPv6 * Add support for IPv6 * Remove in-correct changes by IPv6 support patch
…lly (#20932) #### Why I did it src/sonic-swss ``` * 3da2e676 - (HEAD -> master, origin/master, origin/HEAD) [dualtor] Fix standby neighbor inconsistency after warm reboot (#3356) (2 hours ago) [Longxiang Lyu] * 8bf38aff - [Chassis][LAG_ID] Address the same lagid been used in two different LCs issue (#3303) (2 hours ago) [Marty Y. Lok] * a9080f78 - Fixed narrowing conversion issues. (#3395) (2 hours ago) [mramezani95] * 98303af0 - [fpmsyncd] support pipeline to flush with a timer (#3241) (2 hours ago) [Yijiao Qin] * a8c358fc - [Dash] Handle FC update for existing ENI objects (#3373) (6 hours ago) [Vivek] ``` #### How I did it #### How to verify it #### Description for the changelog
…lly (sonic-net#20932) #### Why I did it src/sonic-swss ``` * 3da2e676 - (HEAD -> master, origin/master, origin/HEAD) [dualtor] Fix standby neighbor inconsistency after warm reboot (sonic-net#3356) (2 hours ago) [Longxiang Lyu] * 8bf38aff - [Chassis][LAG_ID] Address the same lagid been used in two different LCs issue (sonic-net#3303) (2 hours ago) [Marty Y. Lok] * a9080f78 - Fixed narrowing conversion issues. (sonic-net#3395) (2 hours ago) [mramezani95] * 98303af0 - [fpmsyncd] support pipeline to flush with a timer (sonic-net#3241) (2 hours ago) [Yijiao Qin] * a8c358fc - [Dash] Handle FC update for existing ENI objects (sonic-net#3373) (6 hours ago) [Vivek] ``` #### How I did it #### How to verify it #### Description for the changelog
- What I did
Added support in PAM and NSS library to support IPv6 addresses.
- How I did it
It is mainly to change the way the IP address and port number is parsed from the string ip addr: port#.
In current code, they look for the first ‘:’ and anything after that is port number. This does not work for IPv6 as ‘:’ exists in address. SO I changed it to look at the last ‘:’ instead.
- How to verify it
Started tac_plus server which has IPv6 address.
Pulled the tac_plus code from:
https://launchpad.net/ubuntu/+source/tacacs+/4.0.4.27a-3
Started the tac_plus service on server side listening in the default port (49).
Added the configs in DUT.
sudo config tacacs authtype login
sudo config tacacs passkey testing123
sudo config aaa authentication login tacacs+
sudo config tacacs add IPv6 server address
$ show tacacs
TACPLUS global auth_type login
TACPLUS global timeout 5 (default)
TACPLUS global passkey testing123
TACPLUS_SERVER address IPv6 server address
priority 1
tcp_port 49
From an external server, tried logging in to the SONiC device as a test user defined in the tacacs server, was able to login successfully.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)