summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Harpin <development@landsofshadow.co.uk>2015-06-22 21:14:13 +0100
committerDaniil Baturin <daniil@baturin.org>2017-09-14 14:08:28 +0200
commit293b22172e85c6e3d2a39c3725f14f6afa08c4fc (patch)
treeb8da2f0ac509201e5e1aebd95097649085b6fb3f
parenta52ac9a28e4de15ae5c78a7de6d7ff35ec528f4b (diff)
downloadvyatta-cfg-system-293b22172e85c6e3d2a39c3725f14f6afa08c4fc.tar.gz
vyatta-cfg-system-293b22172e85c6e3d2a39c3725f14f6afa08c4fc.zip
Revert "vyatta-cfg-system: prevent deletion of all user authentication"
This reverts commit 593899accdff03af23e6bb6c7189ad4ed05a4d8e. This commit reintroduced the inability to delete a user configured on the system, which was resolved in bug #557. Reverting this for the time being until a better fix can be implemented.
-rw-r--r--templates/system/login/user/node.tag/authentication/encrypted-password/node.def3
-rw-r--r--templates/system/login/user/node.tag/authentication/public-keys/node.def4
2 files changed, 0 insertions, 7 deletions
diff --git a/templates/system/login/user/node.tag/authentication/encrypted-password/node.def b/templates/system/login/user/node.tag/authentication/encrypted-password/node.def
index a8b3ee54..29ad14a8 100644
--- a/templates/system/login/user/node.tag/authentication/encrypted-password/node.def
+++ b/templates/system/login/user/node.tag/authentication/encrypted-password/node.def
@@ -9,6 +9,3 @@ syntax:expression: ($VAR(@) == "*" || $VAR(@) == "!" \
|| ( pattern $VAR(@) "^\\$5\\$[a-zA-Z0-9\./]*\\$[a-zA-Z0-9\./]{43}$" ) \
|| ( pattern $VAR(@) "^\\$6\\$[a-zA-Z0-9\./]*\\$[a-zA-Z0-9\./]{86}$" )) \
; "Not a valid encrypted password for user $VAR(../../@)"
-
-delete:expression: $VAR(../public-keys) != ""
- ; "either user encrypted password or public keys must be set" \ No newline at end of file
diff --git a/templates/system/login/user/node.tag/authentication/public-keys/node.def b/templates/system/login/user/node.tag/authentication/public-keys/node.def
index d813fb9e..245e7197 100644
--- a/templates/system/login/user/node.tag/authentication/public-keys/node.def
+++ b/templates/system/login/user/node.tag/authentication/public-keys/node.def
@@ -7,7 +7,3 @@ commit:expression: $VAR(./type/) != "" ; \
"Must configure public key type for $VAR(@)"
commit:expression: $VAR(./key/) != "" ; \
"Must configure public key value for $VAR(@)"
-
-delete:expression: ($VAR(../encrypted-password) != "" &&
- $VAR(../encrypted-password/@) != "!")
- ; "either user encrypted password or public keys must be set" \ No newline at end of file