Item5685: How MailerContrib and LdapContrib works together
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
I am using TWiki 4.2.0,
LdapContrib with
NewUserPlugin +
RenderLdapUser Topic, and
SubscribeAddOn, and trying to figure out how mailnotify should behave.
My user page have the email address from ldap. The
ActionTrackerPlugin can find and use this email address for notification. But the
MailerContrib cannot find the email address in the auto generated user topics.
So I have to put my email address directly into the
WebNotify Topic. But I want to use the user Topics and names like Main.PBraun in
WebNotify. The
ActionTrackerPlugin works with the user Topics and can read the email addresses.
--
TWiki:Main/PaulBraun - 04 Jun 2008
Please have a look at the patches to TWiki-4.2.0 at
Item5118. These fix some of the issues that hinder other plugins to get the userinfo correctly from the
LdapContrib. Note also that your email addressess are not stored in the user topics, or better they should not. They are already stored in your LDAP directory, presumably, meaning there's no per se reason to replicated them redundantly in the users' topics.
--
TWiki:Main.MichaelDaum - 04 Jun 2008
Thanks for the feedback.
I only have a ldap search in user topics. So they show me the email address from the ldap directory. But only with a correct email address as result of the search, the
ActionTrackerPlugin works fine. But not the
MailerContrib.
I think i wait for a new version of contrib.
--
TWiki:Main.PaulBraun - 05 Jun 2008
Okay.
One comment: the
MailerContrib will only try to extract the email address from the hometopic as a fallback when everything else failed. That's done by parsing the raw text for anything that looks like an email address. It does
not expand any ldap search before doing so; it parses the raw text of the topic thus seeing some
%LDAPSEARCH{}%
expression and not its result.
--
TWiki:Main.MichaelDaum - 05 Jun 2008
AFAIK the
MailerContrib never tries to read an email address from a user topic. It is strictly limited to the
TWiki::Func
API, which in turn uses the user mapping. Assuming you are using the
TopicUserMappingContrib, then the function
mapper_getEmails
is what recovers the email addresses from the user topic. If your variable should be expanded anywhere, it is there.
Bouncing back to the
LdapContrib.
--
CrawfordCurrie - 04 Aug 2008