[imp] Failed to connect to the specified directory - again

TOM GERMIAT TOM.GERMIAT@menasha.com
Fri, 17 May 2002 12:01:21 -0500


---------------------- multipart/alternative attachment
Using:

Horde 2.0
IMP 3.0
Turba 1.0
PHP 4.2.0
Apache 1.3.22
MySQL 3.22.32
OpenLDAP 2.0.23

When choosing Addressbook from within IMP:

We have the LDAP directory connection configured and working properly, but =
when choosing My Addressbook and then trying to either search or add we =
get the message "Failed to connect to the specified directory." =20

horde/turba/config/sources.php is properly configured, even adding the =
curiously absent 'socket' entry.
$cfgSources['localsql'] =3D array(
    'title' =3D> 'My Addressbook',
    'type' =3D> 'sql',
    'params' =3D> array(
        'phptype' =3D> 'mysql',
        'hostspec' =3D> 'me20.menasha.com',
        'username' =3D> 'horde',
        'password' =3D> '********',
        'database' =3D> 'horde',
        'options' =3D> '',
        'socket' =3D> '',
        'tty' =3D> '',
        'port' =3D> '5432',
        'protocol' =3D> 'unix',
        'table' =3D> 'turba_objects'
    ),
    'map' =3D> array(
        '__key' =3D> 'object_id',
        '__owner' =3D> 'owner_id',
        'name' =3D> 'object_name',
        'email' =3D> 'object_email',
        'homeAddress' =3D> 'object_homeAddress',
        'workAddress' =3D> 'object_workAddress',
        'homePhone' =3D> 'object_homePhone',
        'workPhone' =3D> 'object_workPhone',
        'cellPhone' =3D> 'object_cellPhone',
        'fax' =3D> 'object_fax',
        'title' =3D> 'object_title',
        'company' =3D> 'object_company',
        'notes' =3D> 'object_notes'
    ),
    'search' =3D> array(
        'name',
        'email'
    ),
    'strict' =3D> array(
        'object_id'
    ),
    'public' =3D> false,
    'readonly' =3D> false,
    'export' =3D> true
);



This matches the settings in the horde/config/horde.php Preference System =
Settings.
$conf['prefs']['driver'] =3D 'sql';
$conf['prefs']['params'] =3D array();
$conf['prefs']['params']['phptype'] =3D 'mysql';
$conf['prefs']['params']['hostspec'] =3D 'me20.menasha.com';
$conf['prefs']['params']['username'] =3D 'horde';
$conf['prefs']['params']['password'] =3D '********';
$conf['prefs']['params']['database'] =3D 'horde';
$conf['prefs']['params']['table'] =3D 'horde_prefs';


Furthermore,  MySql is running, storing and retrieving preferences for =
accounts.  I've read everything on the list that's been written about this =
issue, but I've seen no solution.  Anyone?

Tom Germiat

---------------------- multipart/alternative attachment
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"=
>
<META content=3D"MSHTML 5.50.4913.1100" name=3DGENERATOR></HEAD>
<BODY style=3D"MARGIN-TOP: 2px; FONT: 8pt Tahoma; MARGIN-LEFT: 2px">
<DIV><FONT size=3D1>Using:</FONT></DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1>Horde 2.0</FONT></DIV>
<DIV><FONT size=3D1>IMP 3.0</FONT></DIV>
<DIV><FONT size=3D1>Turba 1.0</FONT></DIV>
<DIV><FONT size=3D1>PHP 4.2.0</FONT></DIV>
<DIV><FONT size=3D1>Apache 1.3.22</FONT></DIV>
<DIV><FONT size=3D1>MySQL 3.22.32</FONT></DIV>
<DIV><FONT size=3D1>OpenLDAP 2.0.23</FONT></DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1>When choosing Addressbook from within IMP:</FONT></DIV>=

<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1>We have the LDAP directory connection configured and =
working=20
properly, but when choosing My Addressbook and then trying to either =
search or=20
add we get the message "Failed to connect to the specified directory."&nbsp=
;=20
</FONT></DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1>horde/turba/config/sources.php is properly configured, =
even=20
adding the curiously absent 'socket' entry.</FONT></DIV>
<DIV><FONT size=3D1>$cfgSources['localsql'] =3D array(<BR>&nbsp;&nbsp;&nbsp=
; 'title'=20
=3D&gt; 'My Addressbook',<BR>&nbsp;&nbsp;&nbsp; 'type' =3D&gt;=20
'sql',<BR>&nbsp;&nbsp;&nbsp; 'params' =3D&gt;=20
array(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'phptype' =3D&gt;=20
'mysql',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'hostspec' =
=3D&gt;=20
'me20.menasha.com',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
'username'=20
=3D&gt; 'horde',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'password' =
=3D&gt;=20
'********',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'database' =
=3D&gt;=20
'horde',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'options' =3D&gt;=20=

'',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'socket' =3D&gt;=20
'',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'tty' =3D&gt;=20
'',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'port' =3D&gt;=20
'5432',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'protocol' =3D&gt;=20=

'unix',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'table' =3D&gt;=20
'turba_objects'<BR>&nbsp;&nbsp;&nbsp; ),<BR>&nbsp;&nbsp;&nbsp; 'map' =
=3D&gt;=20
array(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '__key' =3D&gt;=20
'object_id',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '__owner' =
=3D&gt;=20
'owner_id',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'name' =3D&gt;=20=

'object_name',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'email' =
=3D&gt;=20
'object_email',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'homeAddress'=
=20
=3D&gt; 'object_homeAddress',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
=20
'workAddress' =3D&gt;=20
'object_workAddress',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
'homePhone'=20
=3D&gt; 'object_homePhone',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
=20
'workPhone' =3D&gt;=20
'object_workPhone',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
'cellPhone'=20
=3D&gt; 'object_cellPhone',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
'fax'=20
=3D&gt; 'object_fax',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
'title' =3D&gt;=20
'object_title',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'company' =
=3D&gt;=20
'object_company',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'notes' =
=3D&gt;=20
'object_notes'<BR>&nbsp;&nbsp;&nbsp; ),<BR>&nbsp;&nbsp;&nbsp; 'search' =
=3D&gt;=20
array(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
'name',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
'email'<BR>&nbsp;&nbsp;&nbsp; ),<BR>&nbsp;&nbsp;&nbsp; 'strict' =3D&gt;=20
array(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
'object_id'<BR>&nbsp;&nbsp;&nbsp; ),<BR>&nbsp;&nbsp;&nbsp; 'public' =
=3D&gt;=20
false,<BR>&nbsp;&nbsp;&nbsp; 'readonly' =3D&gt; false,<BR>&nbsp;&nbsp;&nbsp=
;=20
'export' =3D&gt; true<BR>);<BR></FONT></DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1>This matches the settings in the horde/config/horde.php=
=20
Preference System Settings.</FONT></DIV>
<DIV><FONT size=3D1>$conf['prefs']['driver'] =3D 'sql';<BR>$conf['prefs']['=
params']=20
=3D array();<BR>$conf['prefs']['params']['phptype'] =3D=20
'mysql';<BR>$conf['prefs']['params']['hostspec'] =3D=20
'me20.menasha.com';<BR>$conf['prefs']['params']['username'] =3D=20
'horde';<BR>$conf['prefs']['params']['password'] =3D=20
'********';<BR>$conf['prefs']['params']['database'] =3D=20
'horde';<BR>$conf['prefs']['params']['table'] =3D 'horde_prefs';<BR></FONT>=
</DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1>Furthermore,&nbsp; MySql is running, storing and =
retrieving=20
preferences for accounts.&nbsp; </FONT><FONT size=3D1>I've read everything =
on the=20
list that's been written about this issue, but I've seen no solution.&nbsp;=
=20
Anyone?</FONT></DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1>Tom Germiat</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

---------------------- multipart/alternative attachment--