summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-06 17:38:31 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-06 19:12:51 -0700
commitdf4a29dcf842f75d9c62a81f171fc8413198de76 (patch)
tree3d88c13d246c2d61f90e86441e09a3d5d242d773 /templates/system
parentd903728c5a57cdd87617fbfd84ef9cdf7ed96fba (diff)
downloadvyatta-cfg-system-df4a29dcf842f75d9c62a81f171fc8413198de76.tar.gz
vyatta-cfg-system-df4a29dcf842f75d9c62a81f171fc8413198de76.zip
Change user name validation
Do username validation in perl script. This allows for checking for what is allowed, versus what is recommended. For compatiablity we allow things like upper case user names which but this is not recommended so these names produce a warning.
Diffstat (limited to 'templates/system')
-rw-r--r--templates/system/login/user/node.def3
1 files changed, 0 insertions, 3 deletions
diff --git a/templates/system/login/user/node.def b/templates/system/login/user/node.def
index 751767d6..7e56ca0f 100644
--- a/templates/system/login/user/node.def
+++ b/templates/system/login/user/node.def
@@ -2,9 +2,6 @@ tag:
type: txt
help: Set user account information
-syntax:expression: pattern $VAR(@) "^[a-zA-Z_][a-zA-Z0-9_-]*\\$?$"
- ; "invalid user name $VAR(@)"
-
syntax:expression: exec "/opt/vyatta/sbin/vyatta_check_username.pl $VAR(@)"
commit:expression: $VAR(authentication/encrypted-password) != ""