% USERINFO{ format="Email: $emails }%
does not show the Email-Address of a LDAP-User.
After sucessfully configuring
LdapContrib to map Users from our LDAP I noticed that the E-Mail-addresses where not available in TWiki.
I tried to track that error down and noticed the following:
The Module
Users::LdapUserMapping
does not contain a
getEmails
-Method but calls the empty function in it's abstract baseclass instead.
At the other side there is a function called
getEmails
in the Module
Users::LdapUser
which is not called --- at least not when the above mentioned
%USERINFO
... variable is expanded.
After I
copied the function
getEmails
from
Users::LdapUser
to
Users::LdapUserMapping
the emails are delivered just fine. I don't dare to remove this function from
Users::LdapUser
as I don't know if it is used in this module.
--
TWiki:Main/KlausFueller
- 25 Nov 2008
Thanks Klaus for the bug report and fix. This should go into the next release.
--
TWiki:Main.PeterThoeny
- 25 Nov 2008