diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-06-08 09:12:03 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-06-08 09:12:03 +0200 |
commit | 873e9ef110039289b3554e4e579bbaa249f9ca77 (patch) | |
tree | e8f2da860dcea7d554f308223b965ed4052d4d25 /src/conf_mode | |
parent | c64d702d307c6cf99260af5c8c15cf8cb5b4ae87 (diff) | |
download | vyos-1x-873e9ef110039289b3554e4e579bbaa249f9ca77.tar.gz vyos-1x-873e9ef110039289b3554e4e579bbaa249f9ca77.zip |
T652: user encrypted-key not possible without engineid
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/snmp.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py index 7623206b4..83ae27bbd 100755 --- a/src/conf_mode/snmp.py +++ b/src/conf_mode/snmp.py @@ -634,6 +634,9 @@ def verify(snmp): if user['privPassword'] == '' and user['privMasterKey'] == '': raise ConfigError('Must specify encrypted-key or plaintext-key for user privacy') + if user['privMasterKey'] and user['engineID'] == '': + raise ConfigError('Can not have "encrypted-key" without engineid') + if user['authPassword'] == '' and user['authMasterKey'] == '' and user['privTsmKey'] == '': raise ConfigError('Must specify auth or tsm-key for user auth') |