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

    LDAP-Anbindung erfolgreich aber keine Anmledung

    Scheduled Pinned Locked Moved Betrieb
    4 Posts 4 Posters 2.0k 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.
    • B Offline
      bg
      last edited by

      Hallo Forum,

      ich betreibe I-DOITpro auf einer Ubuntu-Box. Per LDAP sollten sich die Benutzer am bestehenden AD anmelden. Die LDAP Anbindung ist erfolgreich. In der temp/ldap_dabug.txt wird folgendes eingetragen:

      2012-01-10 10:15:48 ldap: LDAP Module launched for mandator: idoit_ma1001
      2012-01-10 10:15:48 ldap: Found 1 configured LDAP Servers.
      2012-01-10 10:15:48 ldap: 1: server.secatkre.local (OU=SBSUsers,OU=Users,OU=MyBusiness,DC=secatkre,DC=local)
      2012-01-10 10:15:48 ldap: –--------------------------------------------------------------------------------------------
      2012-01-10 10:15:48 ldap: Creating new ldap-library connection to: server.secatkre.local:389, user: secatkre\idoitusr
      2012-01-10 10:15:48 ldap: Connected to server.secatkre.local
      2012-01-10 10:15:48 ldap: Searching for username: xyz
      2012-01-10 10:15:48 ldap: Getting user(s) using filter: (&(objectClass=user)(sAMAccountName=xyz)) in search-path: OU=SBSUsers,OU=Users,OU=MyBusiness,DC=secatkre,DC=local
      2012-01-10 10:15:48 ldap: Found DN: CN=Vorname Nachname,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=secatkre,DC=local. Trying to login with it.
      2012-01-10 10:15:48 ldap: Auth successfull (CN=Vorname Nachname,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=secatkre,DC=local).
      2012-01-10 10:15:48 ldap: Database error : Query error: 'INSERT INTO isys_obj (isys_obj__title, isys_obj__isys_obj_type__id, isys_obj__isys_cmdb_status__id, isys_obj__status, isys_obj__sysid, isys_obj__created,isys_obj__created_by,isys_obj__updated,isys_obj__updated_by,isys_obj__hostname,isys_obj__scantime,isys_obj__imported) VALUES ('Vorname Nachname', '53', 'C__CMDB_STATUS__IN_OPERATION', '2', '', NOW(),'',NOW(),'','',NULL,'1970-01-01 01:00:00');':
      Cannot add or update a child row: a foreign key constraint fails (idoit_ma1001.isys_obj, CONSTRAINT isys_obj_ibfk_2 FOREIGN KEY (isys_obj__isys_cmdb_status__id) REFERENCES isys_cmdb_status (isys_cmdb_status__id) ON DELETE SET NULL ON UPDATE CASCA)

      Der erste Teil mit der Anbindung funktionierte erfreulicherweise einfach. Aber der SQL-Fehler gibt mir Rätsel auf.

      beste Grüße Bern

      1 Reply Last reply Reply Quote 0
      • binaryB Offline
        binary
        last edited by

        Hi bg

        Ich habe genau dasselbe Problem, habe einen ganzen Tag lang versucht es zum laufen zu bringen…forget it.
        Ich habe langsam das gefühl das Forum wird vom Hersteller gar nicht wirklich angeschaut, bzw. gewartet. Ich habe noch nie ne Antwort gekriegt. 😞

        1 Reply Last reply Reply Quote 0
        • M Offline
          mest
          last edited by

          Hallo!

          Ich bin mir nicht sicher ob es hilft, aber bei mir lag es daran, daß der Filter in der DB nicht richtig eingeragen wurde.
          Ich habe in der GUI (&(objectClass=person)) unter Filter in der LDPConfig stehen.

          Der Ldap Logon war aber nur möglich nach dem ich den Eintrag direkt in der DB geöndert habe:
          Tabelle: isys_ldap, Feld:  isys_ldap__filter , Eintrag: objectClass=person OHNE KLAMMERN !!!

          Stefan

          1 Reply Last reply Reply Quote 0
          • F Offline
            freddy
            last edited by

            Den Fehler haben wir ebenfalls, das Problem tritt bei uns auf wenn sich ein Benutzer zum ersten mal bei idoit einloggt.

            Problem ist das die Kostante C__CMDB_STATUS__IN_OPERATION nicht definiert ist und entsprechend nicht ersetzt wird.
            Die const_cache.inc.php des jeweiligen Mandanten wird nicht included.
            Workaround aus unserer src/config.inc.php

            # const cache include fix/workaround
            # Without this new LDAP user (never logged in before) can't be created,
            # LDAP debug contains something like this:
            # ldap: Database error : Query error: 'INSERT INTO isys_obj (isys_obj__title, isys_obj__isys_obj_type__id, isys_obj__isys_cmdb_status__id, isys_obj__status, isys_obj__sysid, isys_obj__created,isys_obj__created_by,isys_obj__updated,isys_obj__updated_by,isys_obj__hostname,isys_obj__scantime,isys_obj__imported) VALUES ('test user', '53', 'C__CMDB_STATUS__IN_OPERATION', '2', '', NOW(),'',NOW(),'','',NULL,'1970-01-01 01:00:00');':
            #Cannot add or update a child row: a foreign key constraint fails (`idoit_data`.`isys_obj`, CONSTRAINT `isys_obj_ibfk_2` FOREIGN KEY (`isys_obj__isys_cmdb_status__id`) REFERENCES `isys_cmdb_status` (`isys_cmdb_status__id`) ON DELETE SET NULL ON UPDATE CASCADE)
            include_once("/.../idoit/temp/cache_<mandant>/const_cache.inc.php");</mandant>
            

            Den include path entsprechend anpassen.

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