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

Using gong without FQDN forgets chosen device when .tacacsrc credentials are updated. #151

Closed
jathanism opened this Issue Nov 6, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@jathanism
Member

jathanism commented Nov 6, 2013

Using gong without FQDN, when .tacacsrc is not found, and then reconnecting to the device lists all options again instead of continuing with your original choice

Seems like a minor bug with the value that is passed back to gong when the callback to update credentials returns.

$ gong ops
12 possible matches found for 'ops':
 [ 1] lb1-xyz.ops.example.com
 [ 2] lb2-xyz.ops.example.com
 [ 3] mega1-hd1-xyz.ops.example.com
 [ 4] mega1-ta1-xyz.ops.example.com
 [ 5] ops-ib1-xyz.ops.example.com
 [ 6] ops-ib2-xyz.ops.example.com
 [ 7] ops-sw1-xyz.ops.example.com
 [ 8] ops-sw2-xyz.ops.example.com
 [ 9] ops-sw3-xyz.ops.example.com
 [10] ops-sw4-xyz.ops.example.com
 [11] bop1-1-xyz.ops.example.com
 [12] bop1-2-xyz.ops.example.com
 [ 0] Exit

Enter a device number: 12
Connecting to bop1-2-xyz.ops.example.com.  Use ^X to exit.

Fetching credentials from /home/jathan/.tacacsrc

Connection failed for the following reason:

No more authentication methods available

Authentication failed, would you like to update your password? (Y/n) 

Updating credentials for device/realm 'example'
Username [jathan]: 
Password: 
Password (again): 

Credentials updated for user: 'jathan', device/realm: 'example'.

Reconnect to bop1-2-xyz.ops.example.com? (Y/n) 

12 possible matches found for 'ops':
 [ 1] lb1-xyz.ops.example.com
 [ 2] lb2-xyz.ops.example.com
 [ 3] mega1-hd1-xyz.ops.example.com
 [ 4] mega1-ta1-xyz.ops.example.com
 [ 5] ops-ib1-xyz.ops.example.com
 [ 6] ops-ib2-xyz.ops.example.com
 [ 7] ops-sw1-xyz.ops.example.com
 [ 8] ops-sw2-xyz.ops.example.com
 [ 9] ops-sw3-xyz.ops.example.com
 [10] ops-sw4-xyz.ops.example.com
 [11] bop1-1-xyz.ops.example.com
 [12] bop1-2-xyz.ops.example.com
 [ 0] Exit

Enter a device number:

@jathanism jathanism closed this in 3305337 Nov 16, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment