• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5685: How MailerContrib and LdapContrib works together

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension LdapContrib Normal New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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 ActionTrackePlugin work 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 ActionTracker Plugin 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 TWikiUserMappingContrib, 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

ItemTemplate
Summary How MailerContrib and LdapContrib works together
ReportedBy TWiki:Main.PaulBraun
Codebase 4.2.0
SVN Range TWiki-5.0.0, Sun, 01 Jun 2008, build 16865
AppliesTo Extension
Component LdapContrib
Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2008-08-04 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback