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

    0.9.9-2 LDAP und SLES

    Scheduled Pinned Locked Moved Entwicklung
    2 Posts 2 Posters 1.1k 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
      hgilch
      last edited by

      Hi,

      nach dem ich den Tippfehler in src/classes/modules/isys_module_ldap.class.php (http://www.i-doit.org/forum/index.php/topic,1461.0.html) behoben hatte, konnte ich mich zwar über LDAP anmelden, aber die Gruppen wurden nicht gefunden, weil diese nicht in den User-Account-Informationen gespeichert ist, was vom LDAP-Modul vorausgesetzt wurde.

      Daher habe ich die Gruppensuche verändert, damit in einem anderen Pfad gesucht wird, nämlich "OU=group, DC=domain, DC=…" anstatt des konfigurierten User-Suchstrings. Als Filter benötigt man ein "member=<user-dn>" und der Gruppenname ist dann der cn der Gruppe.

      Folgende Änderungen habe ich vorgenommen:

      
      246c246
      <                                                       if ($l_ldap["isys_ldap_directory__const"] == "C__LDAP__OPENLDAP") {
      ---
      >                                                       if ($l_ldap["isys_ldap_directiry__const"] == "C__LDAP__OPENLDAP") {
      288c288
      <                                                               if ($l_ldap["isys_ldap_directory__const"] == "C__LDAP__OPENLDAP") {
      ---
      >                                                               if ($l_ldap["isys_ldap_directiry__const"] == "C__LDAP__OPENLDAP") {
      380c380
      <                                       $l_ldapi->set_search_path("OU=group,DC=domain,DC=int");
      ---
      >                                       $l_ldapi->set_search_path($p_found_user["ldap_data"]["isys_ldap__user_search"]);
      385c385
      <                                                                                                                               "(".$l_mapping[C__LDAP_MAPPING__GROUP]."=".$p_found_user["dn"].")",
      ---
      >                                                                                                                               "(".$l_mapping[C__LDAP_MAPPING__GROUP]."=".$p_found_user[C__LDAP_MAPPING__USERNAME].")",
      392c392
      <                                                                               " (Filter: "."(".$l_mapping[C__LDAP_MAPPING__GROUP]."=".$p_found_user["dn"].")".
      ---
      >                                                                               " (Filter: "."(".$l_mapping[C__LDAP_MAPPING__GROUP]."=".$p_found_user[C__LDAP_MAPPING__USERNAME].")".
      402,405c402,405
      <                                                                       if ($l_single_group["cn"][0]) {
      <                                                                               $l_group_name = $l_single_group["cn"][0];
      <                                                                       } else if ($l_single_group["cn"]) {
      <                                                                               $l_group_name = $l_single_group["cn"];
      ---
      >                                                                       if ($l_single_group["uid"][0]) {
      >                                                                               $l_group_name = $l_single_group["uid"][0];
      >                                                                       } else if ($l_single_group["uid"]) {
      >                                                                               $l_group_name = $l_single_group["uid"];
      413d412
      <                                                               $this->debug("Group name: $l_group_name");
      
      

      Schön wäre es, wenn man die Gruppensuche in der LDAP-Konfigurationsmaske genauso konfigurieren könnte wie die Usersuche, dann wären denke ich alle Möglichkeiten erschlagen.

      Hubert</user-dn>

      1 Reply Last reply Reply Quote 0
      • dsD Offline
        ds
        last edited by

        Danke für die Hinweise und den Patch.
        Wir werden ein Feld für den Gruppen Suchpfad für OpenLDAP in die Konfiguration mit aufnehmen und die Anpassungen mit in die kommende Version aufnehmen

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post