Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    LDAP Filter werden nicht richtig übernommen

    Scheduled Pinned Locked Moved Entwicklung
    1 Posts 1 Posters 1.2k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      hsz
      last edited by

      der folgende Patch behebt einen Fehler, wenn für LDAP Filter definiert werden.
      Die Funktion rtrim erntfernt mehr ")" als ltrim "(".

      Index: src/classes/libraries/isys_library_ldap.class.php

      –- src/classes/libraries/isys_library_ldap.class.php (Revision XX)
      +++ src/classes/libraries/isys_library_ldap.class.php (Arbeitskopie)
      @@ -84,8 +84,8 @@
      !strstr($p_connection_array["isys_ldap__filter"], "=")) {
      $l_filter = "(".$l_map_username."=".$p_username.")";
      } else {

      • $l_current_filter = rtrim(ltrim($p_connection_array["isys_ldap__filter"], "("), ")");
      • $l_filter = "(&(".$l_current_filter.")(".$l_map_username."=".$p_username."))";
      • $l_current_filter = $p_connection_array["isys_ldap__filter"];
      • $l_filter = "(&".$l_current_filter."(".$l_map_username."=".$p_username."))";
        }

      $this->set_search_path($p_connection_array["isys_ldap__user_search"]);

      1 Reply Last reply Reply Quote 0
      • First post
        Last post