[turba] Turba: Failed to connect to the specified directory

Robert Kubarych rkubarych at bergen.edu
Tue Apr 29 10:35:11 PDT 2003


Hello,

 

We are running the following on Red Hat 7.2:

*	Horde 2.2.1
*	IMP 3.2
*	Passwd 2.1
*	PHP 4.2.2

 

We are using LDAP for authentication and storing preferences, and trying
to use MySQL to store the address book.

 

When ever we try to access "My Addressbook" we get the "Failed to
connect to the specified directory" message.  The address book was
working previously.  However, it may be that at that time we were also
storing the preferences in MySQL.  If you use LDAP to store preferences
do you have to use LDAP for the address book also?  I am able to connect
to the MySQL database via the MySQL client from another host and insert
data into and run queries and deletes against turba_objects.  I believe
we've configured sources.php correctly.  Some postings to the list had
some additional items added into sources.php like port, tty, and
protocol, but adding these did not help. 

 

We're not opposed to using LDAP for the address book, but when get the
following message when configuring things that way:

 

Notice: Undefined offset: 1 in
/usr/local/httpd/htdocs/horde/turba/config/sources.php on line 142

Warning: Cannot add header information - headers already sent by (output
started at /usr/local/httpd/htdocs/horde/turba/config/sources.php:142)
in /usr/local/httpd/htdocs/horde/turba/index.php on line 28

 

********index.php*********************

if ($turba_configured) {

    include_once TURBA_BASE . '/lib/base.php';

 

    $uri = $prefs->getValue('initial_page');

    if (!empty($_SERVER['QUERY_STRING'])) {

        $uri .= '?' . $_SERVER['QUERY_STRING'];

    }

 

line 28    header('Location: ' . Horde::applicationUrl($uri, true));

 

 

*****sources.php*********************

//  First we need to get the uid.

                $uid = Auth::getAuth();

     preg_match('/(^.*)@/', $uid, $uid);

line142    $uid = $uid[1];

 

Any help would be greatly appreciated.

 

Rob

 

Robert K. Kubarych

(201) 612-5591

 



More information about the turba mailing list