summaryrefslogtreecommitdiff
path: root/templates/system/login
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-23 15:28:45 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-23 15:28:45 -0700
commitfd605ab5d4ce4aa4015089042afd90f6e5c6ba59 (patch)
tree49f4d168faf6332f79f26dc0c667fb97b410fb9c /templates/system/login
parent1954901f4345cc0e2e0503019ff60eee1e2faaf8 (diff)
downloadvyatta-cfg-quagga-fd605ab5d4ce4aa4015089042afd90f6e5c6ba59.tar.gz
vyatta-cfg-quagga-fd605ab5d4ce4aa4015089042afd90f6e5c6ba59.zip
Split login authentication configuration into three scripts
Getting cumbersome with one big script.
Diffstat (limited to 'templates/system/login')
-rw-r--r--templates/system/login/node.def2
-rw-r--r--templates/system/login/radius-server/node.def1
-rw-r--r--templates/system/login/tacacs-plus/node.def1
-rw-r--r--templates/system/login/user/node.def1
4 files changed, 3 insertions, 2 deletions
diff --git a/templates/system/login/node.def b/templates/system/login/node.def
index 62e693e2..85d304c8 100644
--- a/templates/system/login/node.def
+++ b/templates/system/login/node.def
@@ -1,3 +1 @@
help: Set user access
-delete:expression: "echo User root cannot 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 137a92a0..f74cc568 100644
--- a/templates/system/login/radius-server/node.def
+++ b/templates/system/login/radius-server/node.def
@@ -4,3 +4,4 @@ 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/tacacs-plus/node.def b/templates/system/login/tacacs-plus/node.def
index d8eab559..41eeb465 100644
--- a/templates/system/login/tacacs-plus/node.def
+++ b/templates/system/login/tacacs-plus/node.def
@@ -1,3 +1,4 @@
help: Set TACACS+ server authentication
commit:expression: $VAR(server) != "" && $VAR(secret) != ""
; "One server and a secret must be specified for TACACS+"
+end: /opt/vyatta/sbin/vyatta_update_tacacs.pl
diff --git a/templates/system/login/user/node.def b/templates/system/login/user/node.def
index d23a397f..b41b2ea3 100644
--- a/templates/system/login/user/node.def
+++ b/templates/system/login/user/node.def
@@ -7,3 +7,4 @@ 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_users.pl