From: Chris McKeever (no email)
Date: Wed Jul 05 2006 - 16:01:50 EDT
On 7/5/06, Magnus Bäck <> wrote:
> On Wednesday, July 05, 2006 at 21:13 CEST,
> Chris McKeever <> wrote:
>
> > On 7/3/06, mouss <> wrote:
> >
> > > why would you do a regex? do it directly in ldap. you're not using
> > > any regex "capacity" here. you're just using
> > > foo at domain => bar at domain
> > > where bar=function(foo) and domain is one of yours. the only thing
> > > is you need to make sure this only returns a result if bar at domain
> > > exists. I see no regex here. These are just "alternate" mailbox
> > > addresses.
> >
> > ok - that would work, I havent come across any LDAP function references ..
> > I will do some digging, if anyone knows a direct link/howto please
> > post it...or even a quick
> > example
> >
> > finding a function that would work in LDAP as you described
> > bar=function(foo) would be perfect!! good suggestion, now I have to
> > find it!
>
> You will find nothing of the sort. LDAP does not have "functions".
> The suggestion is that you store the addresses in LDAP.
>
> mail:
> mailAlternateAddress:
>
> Or whatever your schema supports.
>
> You may use a function, possibly in your favourite scripting language,
> to generate the alternate addresses. Use can then easily use virtual
> rewriting to transform mailAlternateAddress -> mail if you need to.
>
that is what I thought - was a bit confused with the recommendation
about a function and LDAP...
I did find a reference from 2003 from Liviu Daia suggesting REGEX
capability in the ldap lookups, but it seems like that was never
discussed outside of that...it was similiar to what I was looking for.
domain = regexp:/^@(.*\.)?my\.domain$/
query_filter = regexp:/^(.*)$/:(mailacceptinggeneralid=${1})
result_filter = regexp:/^(.*)$/:${1}
> --
> Magnus Bäck
>
>
-- ---------------------------------- please respond to the list .. if you need to contact me direct cgmckeever is the account prupref.com is the domain <A href="http://www.prupref.com">Simply Chicago Real Estate</A>
|
|
|