[turba] Using "criteria" on SQL based addressbooks

Fabiano Felix felix at getnet.com.br
Mon May 17 11:04:09 PDT 2004


Hi Jan,

This is a solution, but it's very hard to provide it to the another services, because I need to configure which table the service must access.

When we use LDAP as backend, we can set the parameter "filter" to provide this function, there is no equivalent to SQL?

Regards,

Fabiano Felix

On May 17, 2004 01:56 PM, Jan Schneider <jan at horde.org> wrote:

> Zitat von Fabiano Felix <felix at getnet.com.br>:
> 
> > Hi all,
> >
> > I'm creating a customized address book to a server with the following 
> > picture:
> > - Virtual users (user at domain)
> > - Postfix
> > - Courier-Imap
> > - Mysql (user's backend)
> > - Maildrop
> > - Horde+Imp+Turba
> >
> > I'm adding this address book to provide an "Enterprise Catalog", 
> > where the user can search any e-mail of the same domain. It's exactly 
> > the point: the search on users are OK, but I need to limit the query 
> > to only the user domain. I think that it can be done creating a SQL 
> > filter on sources.php. Looking on the code, I found some functions 
> > that have a "criteria" variable, that can do this function, but I 
> > don't found any example of usage (if exists).
> >
> > Someone have some idea about this feature???
> 
> The easiest would probably be to create a separate table for each domain and
> set this table in config/sources.php according the domain being used.
> 
> Jan.
> 
> --
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
> -- 
> Turba mailing list - Join the hunt: http://horde.org/bounties/#turba
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe at lists.horde.org



More information about the turba mailing list