Standard LDAP Filter funktioniert nicht mit OpenLdap
-
objectClass=user als Standardfilter funktioniert bei mir nicht.
der folgende patch setzt den Standardfilter auf objectClass=*Index: src/themes/default/smarty/templates/content/bottom/content/module__ldap.tpl
–- src/themes/default/smarty/templates/content/bottom/content/module__ldap.tpl (Revision XX)
+++ src/themes/default/smarty/templates/content/bottom/content/module__ldap.tpl (Arbeitskopie)
@@ -33,7 +33,7 @@function add_filter(p_title, p_value, p_type, p_link_type, p_operator) {
- if(p_title == "objectClass" && p_value == "user"){
- if(p_title == "objectClass" && p_value == "*"){
var disable_all = 'disabled';
var onclick_disable = 'onclick="javascript: return false;"';
var readonly = 'readonly';
@@ -135,7 +135,7 @@
'' + custom_select + '' +
'' + custom_select2 + '';
- if(p_title != "objectClass" && p_value != "user"){
- if(p_title != "objectClass" && p_value != "*"){
l_insert += '[ Entfernen](javascript:;)';
}
@@ -225,7 +225,7 @@
Filter:
- [{isys type="f_text" p_strTitle="Default: (objectClass=user)" name="C__MODULE__LDAP__FILTER" tab="60"}]
- [{isys type="f_text" p_strTitle="Default: (objectClass=*)" name="C__MODULE__LDAP__FILTER" tab="60"}]
@@ -269,4 +269,4 @@
[{/foreach}]
[{/if}]-[{/if}]
\ No newline at end of file
+[{/if}]
Index: src/classes/modules/isys_module_ldap.class.php–- src/classes/modules/isys_module_ldap.class.php (Revision XX)
+++ src/classes/modules/isys_module_ldap.class.php (Arbeitskopie)
@@ -957,7 +957,7 @@
$l_rules["C__MODULE__LDAP__ACTIVE"]["p_arData"] = isys_glob_pack(get_smarty_arr_YES_NO());
$l_rules["C__MODULE__LDAP__PORT"]["p_strValue"] = "389";
$l_rules["C__MODULE__LDAP__TIMELIMIT"]["p_strValue"] = "30";- $l_rules["C__MODULE__LDAP__FILTER"]["p_strValue"] = "(objectClass=user)";
- $l_rules["C__MODULE__LDAP__FILTER"]["p_strValue"] = "(objectClass=*)";
$l_rules["C__MODULE__LDAP__FILTER"]["p_bReadonly"] = true;
$l_versions = array("1" => "1", "2" => "2", "3" => "3");
$l_rules["C__MODULE__LDAP__VERSION"]["p_arData"] = isys_glob_pack($l_versions);
@@ -983,11 +983,11 @@
if (!$l_filter_exists)
{
$l_filter_data = array('attributes' => array('objectClass'),
- 'values' => array('user'),
- 'values' => array('*'),
'field_type' => array('3'),
'field_link_type' => array('&'),
'field_operator' => array('='));
- $l_filter = "(objectClass=user)";
- $l_filter = "(objectClass=*)";
}
$g_comp_template->assign("g_recursive", $l_data["isys_ldap__recursive"]);
@@ -1015,7 +1015,7 @@
else
{
$l_filter_data = array('attributes' => array('objectClass'),- 'values' => array('user'),
- 'values' => array('*'),
'field_type' => array('3'),
'field_link_type' => array('&'),
'field_operator' => array('='));
Index: setup/modules/ldap/files/src/themes/default/smarty/templates/content/bottom/content/module__ldap.tpl
===================================================================
–- setup/modules/ldap/files/src/themes/default/smarty/templates/content/bottom/content/module__ldap.tpl (Revision XX)
+++ setup/modules/ldap/files/src/themes/default/smarty/templates/content/bottom/content/module__ldap.tpl (Arbeitskopie)
@@ -33,7 +33,7 @@
function add_filter(p_title, p_value, p_type, p_link_type, p_operator) {
- if(p_title == "objectClass" && p_value == "user"){
- if(p_title == "objectClass" && p_value == "*"){
var disable_all = 'disabled';
var onclick_disable = 'onclick="javascript: return false;"';
var readonly = 'readonly';
@@ -135,7 +135,7 @@
'' + custom_select + '' +
'' + custom_select2 + '';
- if(p_title != "objectClass" && p_value != "user"){
- if(p_title != "objectClass" && p_value != "*"){
l_insert += '[ Entfernen](javascript:;)';
}
@@ -225,7 +225,7 @@
Filter:
- [{isys type="f_text" p_strTitle="Default: (objectClass=user)" name="C__MODULE__LDAP__FILTER" tab="60"}]
- [{isys type="f_text" p_strTitle="Default: (objectClass=*)" name="C__MODULE__LDAP__FILTER" tab="60"}]
@@ -269,4 +269,4 @@
[{/foreach}]
[{/if}]-[{/if}]
\ No newline at end of file
+[{/if}]
Index: setup/modules/ldap/files/src/classes/modules/isys_module_ldap.class.php–- setup/modules/ldap/files/src/classes/modules/isys_module_ldap.class.php (Revision XX)
+++ setup/modules/ldap/files/src/classes/modules/isys_module_ldap.class.php (Arbeitskopie)
@@ -957,7 +957,7 @@
$l_rules["C__MODULE__LDAP__ACTIVE"]["p_arData"] = isys_glob_pack(get_smarty_arr_YES_NO());
$l_rules["C__MODULE__LDAP__PORT"]["p_strValue"] = "389";
$l_rules["C__MODULE__LDAP__TIMELIMIT"]["p_strValue"] = "30";- $l_rules["C__MODULE__LDAP__FILTER"]["p_strValue"] = "(objectClass=user)";
- $l_rules["C__MODULE__LDAP__FILTER"]["p_strValue"] = "(objectClass=*)";
$l_rules["C__MODULE__LDAP__FILTER"]["p_bReadonly"] = true;
$l_versions = array("1" => "1", "2" => "2", "3" => "3");
$l_rules["C__MODULE__LDAP__VERSION"]["p_arData"] = isys_glob_pack($l_versions);
@@ -983,11 +983,11 @@
if (!$l_filter_exists)
{
$l_filter_data = array('attributes' => array('objectClass'),
- 'values' => array('user'),
- 'values' => array('*'),
'field_type' => array('3'),
'field_link_type' => array('&'),
'field_operator' => array('='));
- $l_filter = "(objectClass=user)";
- $l_filter = "(objectClass=*)";
}
$g_comp_template->assign("g_recursive", $l_data["isys_ldap__recursive"]);
@@ -1015,7 +1015,7 @@
else
{
$l_filter_data = array('attributes' => array('objectClass'),- 'values' => array('user'),
- 'values' => array('*'),
'field_type' => array('3'),
'field_link_type' => array('&'),
'field_operator' => array('='));
-
Danke für den Hinweis + Fix. Werden wir für die nächste Version berücksichtigen