• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Display Username vs Username

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am in the process of swapping over to LDAP authentication and one thing I have found is that the users names used when creating an account on JForum were of the form "Richard Peters" however the ldap user name is "ricpet".

What would be nice would be to have the facility to specify the user name for logging in (i.e ricpet, or petersr or whatever the company convention is) and then using one of the ldap values (in my case "cn") for the display user name.

Richard Peters

[originally posted on jforum.net by Richard Peters]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at the source for the LDAP Authenticator. There are a lot of config settings that can control which attribute matches user name.

If you want to display something other than the user name in a posting, you probably need to make sure either from field or the firstname, lastname fields are set when the Jforum user is created (or modify the UserDAO to use LDAP's info). And then you need to modify the templates to use that info instead of the default of user name.

IMHO, the Jforum templates should support full name / from display instead of user name... but that's for a future version.
[originally posted on jforum.net by monroe]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic