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

Add support for passwords that cannot be used to login #227

Merged
merged 1 commit into from
Sep 18, 2022

Conversation

floatingstatic
Copy link
Contributor

Modern versions of EOS allow one to specify a password that cannot be used to login which is useful for exclusive ssh-key auth:

vEOS(config)#username testuser secret ?
  *       Specify a password that cannot be used to login
  0       Specify an UNENCRYPTED password will follow
  5       Specify an ENCRYPTED MD5 password will follow
  LINE    The UNENCRYPTED (cleartext) password
  sha512  Specifies an ENCRYPTED SHA512 password will follow

Currently pyeapi has no support for this. This change implements support for a nologin encryption type to support setting this feature via the api.

@dlyssenko
Copy link
Contributor

Tested the PR manually, ran unittest - all worked OK. Approving this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants