From 23a5ba6c1ff6e6d576f82725645d4f1bda0c7227 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 14 Jun 2010 07:16:22 +0000 Subject: [PATCH] Added 'noLdap' properties type. -This is for properties which cannot be stored in ldap git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18857 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_core.inc | 6 +++--- .../plugins/addons/propertyEditor/class_propertyEditor.inc | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gosa-core/include/class_core.inc b/gosa-core/include/class_core.inc index dc55acf27..35614e6e8 100644 --- a/gosa-core/include/class_core.inc +++ b/gosa-core/include/class_core.inc @@ -328,7 +328,7 @@ class core extends plugin { array( "name" => "forceGlobals", - "type" => "bool", + "type" => "noLdap", "default" => "false", "description" => _("The 'forceGlobals' statement enables PHP security checks to force register_global settings to be switched off."), "check" => "gosaProperty::isBool", @@ -338,7 +338,7 @@ class core extends plugin { array( "name" => "forceSSL", - "type" => "bool", + "type" => "noLdap", "default" => "false", "description" => _("The 'forceSSL' statement enables PHP security checks to force encrypted access to the web interface. GOsa will try to redirect to the same URL - just with https://"), "check" => "gosaProperty::isBool", @@ -398,7 +398,7 @@ class core extends plugin { array( "name" => "warnSSL", - "type" => "bool", + "type" => "noLdap", "default" => "true", "description" => _("The 'warnSSL' statement enables PHP security checks to detect non encrypted access to the web interface. GOsa will display a warning in this case."), "check" => "gosaProperty::isBool", diff --git a/gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc b/gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc index 93b605ab1..7f1960f59 100644 --- a/gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc +++ b/gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc @@ -223,6 +223,9 @@ class propertyEditor extends management $value = addslashes($value); switch($type[0]){ + case 'noLdap': + $res = $value."  (".CONFIG_DIR.'/'.CONFIG_FILE.")"; + break; case 'bool': $res = "