CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Integrating with OpenLDAP - ERROR 1146 (42S02): Table 'civicrm.civicrm_individua
Pages: [1]

Author Topic: Integrating with OpenLDAP - ERROR 1146 (42S02): Table 'civicrm.civicrm_individua  (Read 1019 times)

shinzo

  • Guest
Integrating with OpenLDAP - ERROR 1146 (42S02): Table 'civicrm.civicrm_individua
July 12, 2010, 09:52:43 pm
Hi there

Following this: http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+LDAP+Integration#CiviCRMLDAPIntegration-ConfigureOpenLDAP

When I create the ldap_entries view in MySQL civicrm database, it says the civicrm_individual table does not exist. But the other civicrm tables do exist. Is there something I need to do within CiviCRM before the civicrm_individual table is created?

ERROR 1146 (42S02): Table 'civicrm.civicrm_individual' doesn't exist

Code: [Select]
CREATE
    VIEW ldap_entries AS
SELECT
    civicrm_individual.contact_id                                AS id,
    ucase(concat('contactID=',civicrm_contact.id,',ou=civicrm')) AS dn,
    1                                                            AS oc_map_id,
    0                                                            AS parent,
    civicrm_individual.id                                        AS keyval
FROM
    (civicrm_individual
JOIN
    civicrm_contact
    ON
    (
        (
            civicrm_individual.contact_id = civicrm_contact.id
        )
    )
    )
UNION
SELECT
    civicrm_organization.contact_id                              AS id,
    ucase(concat('contactID=',civicrm_contact.id,',ou=civicrm')) AS dn,
    2                                                            AS oc_map_id,
    0                                                            AS parent,
    civicrm_organization.id                                      AS id
FROM
    (civicrm_organization
JOIN
    civicrm_contact
    ON
    (
        (
            civicrm_organization.contact_id = civicrm_contact.id
        )
    )
    );

Is the civicrm_contact table similar to the civicrm_individual table?
« Last Edit: July 12, 2010, 10:42:08 pm by shinzo »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Integrating with OpenLDAP - ERROR 1146 (42S02): Table 'civicrm.civicrm_individua
July 13, 2010, 04:26:28 am
Quote
http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+LDAP+Integration#CiviCRMLDAPIntegration-ConfigureOpenLDAP
This is pretty old code ( pre v2.0 ) and needs to upgraded with latest CiviCRM database

Kurund
Found this reply helpful? Support CiviCRM

shinzo

  • Guest
Re: Integrating with OpenLDAP - ERROR 1146 (42S02): Table 'civicrm.civicrm_individua
July 13, 2010, 04:41:24 pm
Are you sure? At the top of that wiki page it says:

This documentation refers to CiviCRM 3.1, current stable version

This is the version I have. If the document is outdated, does anyone know where I can find more info on OpenLDAP integration?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Integrating with OpenLDAP - ERROR 1146 (42S02): Table 'civicrm.civicrm_individua
July 14, 2010, 02:44:05 am
Added warning on http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+LDAP+Integration

Kurund
Found this reply helpful? Support CiviCRM

shinzo

  • Guest
Re: Integrating with OpenLDAP - ERROR 1146 (42S02): Table 'civicrm.civicrm_individua
July 14, 2010, 04:26:40 pm
Thanks I'll have a look around to see what else I can find on the net

josx

  • Guest
Re: Integrating with OpenLDAP - ERROR 1146 (42S02): Table 'civicrm.civicrm_individua
September 24, 2010, 12:50:41 pm
could you configure ldap integration?
could you find another link with more documentation?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Integrating with OpenLDAP - ERROR 1146 (42S02): Table 'civicrm.civicrm_individua

This forum was archived on 2017-11-26.