Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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]
 
I AM MIGHTY! Especially when I hold this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic