Tags:
create new tag
view all tags

SID-01839: Fetching Username and email id in TWiki

Status: Unanswered Unanswered TWiki version: 5.1.2 Perl version: 5.8.1
Category: UserInfoPlugin Server OS: Linux Last update: 10 years ago

Hi,

Need your quick help to get/fetch user logged-in information.

I configured LDAP to authenticate the user to the twiki site successfully. Each user logs-in with his email-id and ldap password. Now, when I am trying to display the username (i.e., email-id) wit below statement in the topic, it is actually displaying with word format styled email-id (example below).

%USERINFO{format="$username"}

when I login with srinivasachary.mutukuloju@gmailPLEASENOSPAM.com, it is displayed like SrinivasacharyDotMutukulojuAtGmailDotCom .

Is there a way to fetch exact email-id what he has used while login?

I have below configured details in TWiki.

$TWiki::cfg{UserMappingManager} = 'TWiki::Users::LdapUserMapping'; $TWiki::cfg{Register}{EnableNewUserRegistration} = 1; $TWiki::cfg{Register}{HidePasswd} = 1; $TWiki::cfg{Register}{AllowSystemGeneratedPassword} = 0; $TWiki::cfg{PasswordManager} = 'TWiki::Users::LdapPasswdUser'; $TWiki::cfg{MinPasswordLength} = '5';

$TWiki::cfg{Ldap}{Debug} = 0; $TWiki::cfg{Ldap}{UserBase} = 'ou=People,xxxx'; $TWiki::cfg{Ldap}{LoginFilter} = 'objectClass=posixAccount'; $TWiki::cfg{Ldap}{UserScope} = 'sub'; $TWiki::cfg{Ldap}{LoginAttribute} = 'uid'; $TWiki::cfg{Ldap}{MailAttribute} = 'mail'; $TWiki::cfg{Ldap}{WikiNameAttributes} = 'cn'; $TWiki::cfg{Ldap}{NormalizeWikiNames} = 1; $TWiki::cfg{Ldap}{NormalizeLoginNames} = 0; $TWiki::cfg{Ldap}{WikiNameAliases} = ''; $TWiki::cfg{Ldap}{AllowChangePassword} = 1; $TWiki::cfg{Ldap}{SecondaryPasswordManager} = 'TWiki::Users::HtPasswdUser'; $TWiki::cfg{Ldap}{GroupBase} = 'ou=groups,xxxx'; $TWiki::cfg{Ldap}{GroupFilter} = 'objectClass=posixGroup'; $TWiki::cfg{Ldap}{GroupScope} = 'sub'; $TWiki::cfg{Ldap}{GroupAttribute} = 'cn'; $TWiki::cfg{Ldap}{MemberAttribute} = 'memberUid'; $TWiki::cfg{Ldap}{MemberIndirection} = 1; $TWiki::cfg{Ldap}{TWikiGroupsBackoff} = 1; $TWiki::cfg{Ldap}{WikiGroupsBackoff} = 1; $TWiki::cfg{Ldap}{NormalizeGroupNames} = 1; $TWiki::cfg{Ldap}{MapGroups} = 1; $TWiki::cfg{Ldap}{RewriteGroups} = {}; $TWiki::cfg{Ldap}{MergeGroups} = 0; $TWiki::cfg{Ldap}{MaxCacheAge} = 300; $TWiki::cfg{Ldap}{Precache} = 1; $TWiki::cfg{Ldap}{PageSize} = 0; $TWiki::cfg{Ldap}{PageSize} = 0; $TWiki::cfg{Ldap}{Exclude} = 'WikiGuest, ProjectContributor, RegistrationAgent, UnknownUser, AdminGroup, NobodyGroup, AdminUser, admin, guest'; $TWiki::cfg{Plugins}{LdapNgPlugin}{Enabled} = 1; $TWiki::cfg{Plugins}{LoginEmailPlugin}{Enabled} = 1; $TWiki::cfg{Plugins}{NewUserPlugin}{Enabled} = 1; $TWiki::cfg{Plugins}{LdapPlugin}{Enabled} = 1; $TWiki::cfg{Plugins}{LDAPPasswordChangerPlugin}{Enabled} = 1; $TWiki::cfg{Ldap}{PrimaryGroupAttribute} = 'gidNumber'; $TWiki::cfg{Ldap}{InnerGroupAttribute} = 'memberUid';

-- TWiki Guest - 2013-12-07

Discussion and Answer

You likely need the LdapNgPlugin.

-- Peter Thoeny - 2013-12-07

thanks Peter. I looked at this plugin. Can you give some insight to find and print the logged-in Username with this plugin. The username is actually a email-id.

-Srinivas

-- TWiki Guest - 2013-12-10

As indicated in the registration form, please register with your real first name and last name. If you prefer to remain anonymous you can login as TWikiGuest with password.

-- Peter Thoeny - 2013-12-10

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- Peter Thoeny - 2015-12-03

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Unanswered
Title Fetching Username and email id in TWiki
SupportCategory UserInfoPlugin
TWiki version 5.1.2
Server OS Linux
Web server Apache
Perl version 5.8.1
Browser & version

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2015-12-03 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.