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

    LDAP Search Filter buggy (0.9.9-8 PRO)

    Scheduled Pinned Locked Moved Entwicklung
    2 Posts 2 Posters 1.3k 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.
    • M Offline
      mwamser
      last edited by

      i-doit Version 0.9.9-8 PRO
      User Authentifizierung gegen OpenLDAP Server.

      Der searchfilter wird nicht richtig zusammengebaut:

      Creating new ldap-library connection to: ldap.foo.bar:389, user: cn=reader,dc=foo,dc=bar
      Connected to ldap.foo.bar
      Searching for username: testuser
      Getting user(s) using filter: (&(&(objectClass=posixaccount)(cn=testuser)) in search-path: OU=people,DC=foo,DC=bar
      ldap: ** No user found.
      User not found. Check if testuser exist in your configured search-path: OU=people,DC=foo,DC=bar

      Es fehlt eine dritte schliessende Klammer.

      Mit folgender Modifikation in classes/libraries/isys_library_ldap.class.php Zeile 86:

      $l_filter = "(&(".$l_current_filter.")(".$l_map_username."=".$p_username.")))";

      statt

      $l_filter = "(&(".$l_current_filter.")(".$l_map_username."=".$p_username."))";

      funktioniert die Suche ("####" = zusaeztlicher Debug Output):

      Searching for username: testuser

      l_current_filter = &(objectClass=posixAccount

      l_filter = (&(&(objectClass=posixAccount)(uid=testuser)))

      l_map_username = uid

      p_username = testuser

      Getting user(s) using filter: (&(&(objectClass=posixAccount)(uid=testuser))) in search-path: OU=People,DC=foo,DC=bar

      Search result Resource id #72

      Found DN: uid=testuser,ou=People,dc=foo,dc=bar. Trying to login with it.
      Auth successfull (uid=testuser,ou=People,dc=foo,dc=bar).

      Gruss,
      Matthias

      1 Reply Last reply Reply Quote 0
      • creissC Offline
        creiss i-doit Kenner
        last edited by

        Hi Matthias,

        änder mal bitte den Filter manuell in der Datenbank in der Tabelle isys_ldap ab. Beim Speichern über die Oberfläche gibt es da teilweise ein unerwünschtes Verhalten.

        Lieben Gruß
        Christian

        NEU - i-doit und IT-Dokumentation bei YouTube: https://www.youtube.com/@donamic_de
        Komplett-Strategie: https://i-doit-trainings.de/it-dokumentation-komplett-strategie/
        i-doit Mastery – https://i-doit-trainings.de/i-doit-mastery

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