[imp] RE: Turba?

Atif Ghaffar aghaffar@developer.ch
Thu, 05 Apr 2001 17:49:14 +0200


Devin Atencio wrote:
> =

> Ok I installed the Turba under Horde and I'm confused about a couple of=

> things.
> With the older IMP I have the contacts in a MySQL Table where it stores=
 the
> contacts for each account.

In the new IMP, turba is a separate application.

> I can't figure out how this turba thing works. When i click contacts ri=
ght
> now
> it attempts to give me a login screen and I can't figure out why? =

Because IMP and Turba are using two different Auths.
You need to Authentify to IMP (via the imap server)
and you have to setup Auth for Horde (via LDAP, imap , ... etc)

Even when you have setup the Horde Auth, It will give you the login
prompt when you  click on contacts.


> What it is
> exactly that I'm suppose to be doing now?  How do I get it so that when=

> someone
> logins into IMP and they want to go into contacts it doesn't prompt for=

> passwords
> for the Contacts and just lets them in? =


In future there will be a unified sessions management.Until then, if you
want, you may apply this patch to your ~horde/Auth.php
--cut-here--

--- Auth.php    Thu Apr  5 09:36:36 2001
+++ Auth.php.Atif       Thu Apr  5 09:36:19 2001
@@ -174,6 +174,12 @@
      */
     function getAuth($realm = null)
     {
+       if (isset($GLOBALS['HTTP_SESSION_VARS']['imp']['user'])){
+               return $GLOBALS['HTTP_SESSION_VARS']['imp']['user'];
+       } else {
+               return false;
+       }
+       /*
         if (!empty($realm)) {
             if (isset($GLOBALS['HTTP_SESSION_VARS']['__auth'][$realm]))
{
                 if
(!empty($GLOBALS['HTTP_SESSION_VARS']['__auth'][$realm]['authenticated'])
&&
@@ -190,6 +196,7 @@
             }
         }
         return false;
+       */
     }
 
     /**

--cut-here--

to apply this patch 
cd /somewhere/horde/lib
patch -p1 </somwhere/patchfile



>How do i also configure Turba to use
> MySQL ?
> =



Create a db for Turba to use.
Example 
mysqladmin create horde
create the Turba tables in that db
mysql horde </somwhere/horde/turba/scripts/drivers/turba.sql



modify your horde/turba/conf/sources.php
mine looks like this

<?php
// $Horde: turba/config/sources.php.dist,v 1.14 2001/03/18 03:13:49
chuck Exp $

$cfgSources = array();

$cfgSources['localsql'] = array(
    'title' => 'Local SQL',
    'type' => 'sql',
    'params' => array(
        'phptype' => 'mysql',
        'hostspec' => 'databaseServerName',
        'username' => 'userName',
        'password' => 'Password',
        'database' => 'horde',
        'options' => '',
        'tty' => '',
        'port' => '',
        'table' => 'Turba_Objects'
    ),
    'map' => array(
        '__key' => 'object_ID',
        '__owner' => 'owner_ID',
        'name' => 'name',
        'email' => 'email',
        'homeAddress' => 'homeAddress',
        'workAddress' => 'workAddress',
        'homePhone' => 'homePhone',
        'workPhone' => 'workPhone',
        'cellPhone' => 'cellPhone',
        'fax' => 'fax',
        'title' => 'title',
        'company' => 'company',
        'notes' => 'notes'
    ),
    'public' => false,
    'readonly' => false
);

?>



Enjoy.



>                                                /'^'\
>                                               ( o o )
> ------------------------------------------oOOO--(_)--OOOo----
>     Devin Atencio
>     ArosNet Systems Administration         .oooO
>     EMail: dreamboy@aros.net               (   )   Oooo.
> --------------------------------------------\ (----(   )-----
>                                              \_)    ) /
>                                                    (_/
> =

> --
> IMP mailing list: http://horde.org/imp/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org

-- 
Atif Ghaffar
Internet Development Manager
4unet AG/SA/Ltd.
-------------------------.
        +41 21 351 53 60 ¦ voice
        +41 78 787 51 45 ¦ mobile
        +41 86 0796598972¦ fax
    http://www.4unet.net ¦ www
http://atif.developer.ch ¦ homepage
  atif.ghaffar@4unet.net ¦ email