diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-01 15:17:13 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-01 15:50:07 -0700 |
commit | bf4dd2a3dd0f36ebd5c1c7a6a3705d378d0453b2 (patch) | |
tree | 8130cda7cbf98ac64ca6c0c408b0befe8873174a /templates/system/login | |
parent | 11b14df671c37a69dd9aaab0d36703d11465df93 (diff) | |
download | vyatta-cfg-quagga-bf4dd2a3dd0f36ebd5c1c7a6a3705d378d0453b2.tar.gz vyatta-cfg-quagga-bf4dd2a3dd0f36ebd5c1c7a6a3705d378d0453b2.zip |
Change how system login update works
Use a wrapper script in vyatta_update_login.pl and per login method
objects for the update.
Diffstat (limited to 'templates/system/login')
-rw-r--r-- | templates/system/login/node.def | 3 | ||||
-rw-r--r-- | templates/system/login/radius-server/node.def | 1 | ||||
-rw-r--r-- | templates/system/login/user/node.def | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/templates/system/login/node.def b/templates/system/login/node.def index 66ac660c..9b24a71f 100644 --- a/templates/system/login/node.def +++ b/templates/system/login/node.def @@ -1,2 +1,3 @@ help: Set user access -delete: echo 'User root cannot be deleted' 1>&2; exit 1 +delete: echo 'All login methods can not be deleted' 1>&2; exit 1 +end: /opt/vyatta/sbin/vyatta_update_login.pl diff --git a/templates/system/login/radius-server/node.def b/templates/system/login/radius-server/node.def index f74cc568..137a92a0 100644 --- a/templates/system/login/radius-server/node.def +++ b/templates/system/login/radius-server/node.def @@ -4,4 +4,3 @@ help: Set radius server authentication commit:expression: $VAR(port) != "" && $VAR(secret) != "" && $VAR(timeout) != "" ; "Port, secret, and timeout must be specified for Radius" -end: /opt/vyatta/sbin/vyatta_update_radius.pl diff --git a/templates/system/login/user/node.def b/templates/system/login/user/node.def index 26625b7f..d23a397f 100644 --- a/templates/system/login/user/node.def +++ b/templates/system/login/user/node.def @@ -7,4 +7,3 @@ commit:expression: $VAR(authentication/encrypted-password) != "" ; "user password must be specified" syntax:expression: pattern $VAR(@) "^[a-zA-Z_][a-zA-Z0-9_-]*\\$?$" ; "invalid user name $VAR(@)" -end: /opt/vyatta/sbin/vyatta_update_login.pl |