WebSphere Portal Server - Userid in JSR168 portlet

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > March 2005 > Userid in JSR168 portlet





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Userid in JSR168 portlet
Neville Harrison

2005-03-23, 6:11 pm

I need to retrieve the userid from Portal (V5.1 with Domino LDAP,
security is enabled) to pass to a web service. JSR168 does not seem to
offer that user attribute and request.getRemoteUser() or
getUserPrincipal() only gives me the LDAP "short name". This value is
not necessarily unique across our LDAP registry.

I can do it with the IBM Portlet API (from the User object). No such
luck with JSR 168.

Any idea?

Thankyou,
Neville
JoeyNbg

2005-03-30, 2:38 am

Have a look at http://publib.boulder.ibm.com/pvc/w...ml#limitations.
There is a table of supported user attributes that are available for JSR 168 portlets in WPS.

quote:
Originally posted by Neville Harrison
I need to retrieve the userid from Portal (V5.1 with Domino LDAP,
security is enabled) to pass to a web service. JSR168 does not seem to
offer that user attribute and request.getRemoteUser() or
getUserPrincipal() only gives me the LDAP "short name". This value is
not necessarily unique across our LDAP registry.

I can do it with the IBM Portlet API (from the User object). No such
luck with JSR 168.

Any idea?

Thankyou,
Neville

Neville Harrison

2005-03-30, 5:59 pm

JoeyNbg wrote:
> Have a look at http://tinyurl.com/3lmoh
> There is a table of supported user attributes that are available for
> JSR 168 portlets in WPS.
>
> Neville Harrison wrote:
>
>
>
>
>
> --
> JoeyNbg
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message968198.html
>

Thanks very much. As, I guess, you are pointing out, the userid isn't
one of them. I have had to revert to the IBM Portlet API to get this
job done and am retrieving the users LDAP DN from the User object.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com