diff --git a/resources/templates/provision/yealink/t20p/y000000000007.cfg b/resources/templates/provision/yealink/t20p/y000000000007.cfg index 9d65396e05..e2df1b1c34 100644 --- a/resources/templates/provision/yealink/t20p/y000000000007.cfg +++ b/resources/templates/provision/yealink/t20p/y000000000007.cfg @@ -382,17 +382,18 @@ security.trust_certificates = #If your username is defined as: security.user_name.admin = adminuser. #and your password must like this: security.user_password = adminuser:adminpassword. #adminuser is the value of "security.user_name.admin"; adminpassword is the password you want to set. -#security.user_name.admin = adminuser -#security.user_password = adminuser:adminpwd -#security.user_name.user = user1 -#security.user_password = user1:user1pwd -#security.user_name.var = varuser -#security.user_password = varuser:adminpwd - -security.user_name.user = -security.user_name.admin = -security.user_name.var = -security.user_password = +{if isset($user_name) } +security.user_name.user = {$user_name} +security.user_password = {$user_name}:{$user_password} +{/if} +{if isset($admin_name) } +security.user_name.admin = {$admin_name} +security.user_password = {$admin_name}:{$admin_password} +{/if} +{if isset($var_name) } +security.user_name.var = {$var_name} +security.user_password = {$var_name}:{$var_password} +{/if} #Enable or disable the 3-level permissions (open var); 0-Disabled (default), 1-Enabled; #Require reboot; diff --git a/resources/templates/provision/yealink/t22p/y000000000005.cfg b/resources/templates/provision/yealink/t22p/y000000000005.cfg index 9d65396e05..e2df1b1c34 100644 --- a/resources/templates/provision/yealink/t22p/y000000000005.cfg +++ b/resources/templates/provision/yealink/t22p/y000000000005.cfg @@ -382,17 +382,18 @@ security.trust_certificates = #If your username is defined as: security.user_name.admin = adminuser. #and your password must like this: security.user_password = adminuser:adminpassword. #adminuser is the value of "security.user_name.admin"; adminpassword is the password you want to set. -#security.user_name.admin = adminuser -#security.user_password = adminuser:adminpwd -#security.user_name.user = user1 -#security.user_password = user1:user1pwd -#security.user_name.var = varuser -#security.user_password = varuser:adminpwd - -security.user_name.user = -security.user_name.admin = -security.user_name.var = -security.user_password = +{if isset($user_name) } +security.user_name.user = {$user_name} +security.user_password = {$user_name}:{$user_password} +{/if} +{if isset($admin_name) } +security.user_name.admin = {$admin_name} +security.user_password = {$admin_name}:{$admin_password} +{/if} +{if isset($var_name) } +security.user_name.var = {$var_name} +security.user_password = {$var_name}:{$var_password} +{/if} #Enable or disable the 3-level permissions (open var); 0-Disabled (default), 1-Enabled; #Require reboot; diff --git a/resources/templates/provision/yealink/t26p/y000000000004.cfg b/resources/templates/provision/yealink/t26p/y000000000004.cfg index 9d65396e05..e2df1b1c34 100644 --- a/resources/templates/provision/yealink/t26p/y000000000004.cfg +++ b/resources/templates/provision/yealink/t26p/y000000000004.cfg @@ -382,17 +382,18 @@ security.trust_certificates = #If your username is defined as: security.user_name.admin = adminuser. #and your password must like this: security.user_password = adminuser:adminpassword. #adminuser is the value of "security.user_name.admin"; adminpassword is the password you want to set. -#security.user_name.admin = adminuser -#security.user_password = adminuser:adminpwd -#security.user_name.user = user1 -#security.user_password = user1:user1pwd -#security.user_name.var = varuser -#security.user_password = varuser:adminpwd - -security.user_name.user = -security.user_name.admin = -security.user_name.var = -security.user_password = +{if isset($user_name) } +security.user_name.user = {$user_name} +security.user_password = {$user_name}:{$user_password} +{/if} +{if isset($admin_name) } +security.user_name.admin = {$admin_name} +security.user_password = {$admin_name}:{$admin_password} +{/if} +{if isset($var_name) } +security.user_name.var = {$var_name} +security.user_password = {$var_name}:{$var_password} +{/if} #Enable or disable the 3-level permissions (open var); 0-Disabled (default), 1-Enabled; #Require reboot; diff --git a/resources/templates/provision/yealink/t28p/y000000000000.cfg b/resources/templates/provision/yealink/t28p/y000000000000.cfg index 9d65396e05..e2df1b1c34 100644 --- a/resources/templates/provision/yealink/t28p/y000000000000.cfg +++ b/resources/templates/provision/yealink/t28p/y000000000000.cfg @@ -382,17 +382,18 @@ security.trust_certificates = #If your username is defined as: security.user_name.admin = adminuser. #and your password must like this: security.user_password = adminuser:adminpassword. #adminuser is the value of "security.user_name.admin"; adminpassword is the password you want to set. -#security.user_name.admin = adminuser -#security.user_password = adminuser:adminpwd -#security.user_name.user = user1 -#security.user_password = user1:user1pwd -#security.user_name.var = varuser -#security.user_password = varuser:adminpwd - -security.user_name.user = -security.user_name.admin = -security.user_name.var = -security.user_password = +{if isset($user_name) } +security.user_name.user = {$user_name} +security.user_password = {$user_name}:{$user_password} +{/if} +{if isset($admin_name) } +security.user_name.admin = {$admin_name} +security.user_password = {$admin_name}:{$admin_password} +{/if} +{if isset($var_name) } +security.user_name.var = {$var_name} +security.user_password = {$var_name}:{$var_password} +{/if} #Enable or disable the 3-level permissions (open var); 0-Disabled (default), 1-Enabled; #Require reboot; diff --git a/resources/templates/provision/yealink/t32g/y000000000032.cfg b/resources/templates/provision/yealink/t32g/y000000000032.cfg index 9d65396e05..3b56ee6d90 100644 --- a/resources/templates/provision/yealink/t32g/y000000000032.cfg +++ b/resources/templates/provision/yealink/t32g/y000000000032.cfg @@ -388,11 +388,18 @@ security.trust_certificates = #security.user_password = user1:user1pwd #security.user_name.var = varuser #security.user_password = varuser:adminpwd - -security.user_name.user = -security.user_name.admin = -security.user_name.var = -security.user_password = +{if isset($user_name) } +security.user_name.user = {$user_name} +security.user_password = {$user_name}:{$user_password} +{/if} +{if isset($admin_name) } +security.user_name.admin = {$admin_name} +security.user_password = {$admin_name}:{$admin_password} +{/if} +{if isset($var_name) } +security.user_name.var = {$var_name} +security.user_password = {$var_name}:{$var_password} +{/if} #Enable or disable the 3-level permissions (open var); 0-Disabled (default), 1-Enabled; #Require reboot; diff --git a/resources/templates/provision/yealink/t38g/y000000000038.cfg b/resources/templates/provision/yealink/t38g/y000000000038.cfg index 9d65396e05..e2df1b1c34 100644 --- a/resources/templates/provision/yealink/t38g/y000000000038.cfg +++ b/resources/templates/provision/yealink/t38g/y000000000038.cfg @@ -382,17 +382,18 @@ security.trust_certificates = #If your username is defined as: security.user_name.admin = adminuser. #and your password must like this: security.user_password = adminuser:adminpassword. #adminuser is the value of "security.user_name.admin"; adminpassword is the password you want to set. -#security.user_name.admin = adminuser -#security.user_password = adminuser:adminpwd -#security.user_name.user = user1 -#security.user_password = user1:user1pwd -#security.user_name.var = varuser -#security.user_password = varuser:adminpwd - -security.user_name.user = -security.user_name.admin = -security.user_name.var = -security.user_password = +{if isset($user_name) } +security.user_name.user = {$user_name} +security.user_password = {$user_name}:{$user_password} +{/if} +{if isset($admin_name) } +security.user_name.admin = {$admin_name} +security.user_password = {$admin_name}:{$admin_password} +{/if} +{if isset($var_name) } +security.user_name.var = {$var_name} +security.user_password = {$var_name}:{$var_password} +{/if} #Enable or disable the 3-level permissions (open var); 0-Disabled (default), 1-Enabled; #Require reboot; diff --git a/resources/templates/provision/yealink/t42g/y000000000029.cfg b/resources/templates/provision/yealink/t42g/y000000000029.cfg index 5ee16e43a2..4203b1954e 100644 --- a/resources/templates/provision/yealink/t42g/y000000000029.cfg +++ b/resources/templates/provision/yealink/t42g/y000000000029.cfg @@ -905,12 +905,18 @@ security.trust_certificates = #security.user_name.user = user23 #security.user_password = user23:user23pwd #The following examples change the var's username to "var55" and the var's password to "var55pwd". -#security.user_name.var = var55 -#security.user_password = var55:var55pwd -security.user_name.user = -security.user_name.admin = -security.user_name.var = -security.user_password = +{if isset($user_name) } +security.user_name.user = {$user_name} +security.user_password = {$user_name}:{$user_password} +{/if} +{if isset($admin_name) } +security.user_name.admin = {$admin_name} +security.user_password = {$admin_name}:{$admin_password} +{/if} +{if isset($var_name) } +security.user_name.var = {$var_name} +security.user_password = {$var_name}:{$var_password} +{/if} #Enable or disable the 3-level permissions (open var); 0-Disabled (default), 1-Enabled; #Require reboot; diff --git a/resources/templates/provision/yealink/t46g/y000000000028.cfg b/resources/templates/provision/yealink/t46g/y000000000028.cfg index 5ee16e43a2..4203b1954e 100644 --- a/resources/templates/provision/yealink/t46g/y000000000028.cfg +++ b/resources/templates/provision/yealink/t46g/y000000000028.cfg @@ -905,12 +905,18 @@ security.trust_certificates = #security.user_name.user = user23 #security.user_password = user23:user23pwd #The following examples change the var's username to "var55" and the var's password to "var55pwd". -#security.user_name.var = var55 -#security.user_password = var55:var55pwd -security.user_name.user = -security.user_name.admin = -security.user_name.var = -security.user_password = +{if isset($user_name) } +security.user_name.user = {$user_name} +security.user_password = {$user_name}:{$user_password} +{/if} +{if isset($admin_name) } +security.user_name.admin = {$admin_name} +security.user_password = {$admin_name}:{$admin_password} +{/if} +{if isset($var_name) } +security.user_name.var = {$var_name} +security.user_password = {$var_name}:{$var_password} +{/if} #Enable or disable the 3-level permissions (open var); 0-Disabled (default), 1-Enabled; #Require reboot; diff --git a/resources/templates/provision/yealink/vp530/y000000000023.cfg b/resources/templates/provision/yealink/vp530/y000000000023.cfg index 328d4cb4a1..072f302aab 100644 --- a/resources/templates/provision/yealink/vp530/y000000000023.cfg +++ b/resources/templates/provision/yealink/vp530/y000000000023.cfg @@ -457,6 +457,38 @@ memorykey.18.type = memorykey.18.xml_phonebook = memorykey.18.label = +####################################################################################### +## Security ## +####################################################################################### +#Enable or disable the phone to only accept the certificates in the Trusted Certificates list; +#0-Disabled, 1-Enabled (default); +#security.trust_certificates = + +#Define the login username and password of the user, var and administrator. +#If you change the username of the administrator from "admin" to "admin1", your new administrator's username should be configured as: security.user_name.admin = admin1. +#If you change the password of the administrator from "admin" to "admin1pwd", your new administrator's password should be configured as: security.user_password = admin1:admin1pwd. + +#The following examples change the user's username to "user23" and the user's password to "user23pwd". +#security.user_name.user = user23 +#security.user_password = user23:user23pwd +#The following examples change the var's username to "var55" and the var's password to "var55pwd". +{if isset($user_name) } +security.user_name.user = {$user_name} +security.user_password = {$user_name}:{$user_password} +{/if} +{if isset($admin_name) } +security.user_name.admin = {$admin_name} +security.user_password = {$admin_name}:{$admin_password} +{/if} +{if isset($var_name) } +security.user_name.var = {$var_name} +security.user_password = {$var_name}:{$var_password} +{/if} + +#Enable or disable the 3-level permissions (open var); 0-Disabled (default), 1-Enabled; +#Require reboot; +security.var_enable = + ####################################################################################### ## Line Key ## #######################################################################################