blob: 751767d6925fd24e7c6d2ff554792fe2a7fdd025 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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) != ""
|| ($VAR(authentication/plaintext-password) != ""
&& $VAR(authentication/plaintext-password/@) != "")
; "user password must be specified"
|