Skip to Content
author's profile photo Former Member
Former Member

jndi look up for security


I have written a custom login module.(using AbstarctLoginModule)

In its login() method I want to check the user against an active userstore.

To do this I need to look up the securitycontext to get to the userstore.

I tried doing a lookup on "security". This is returning a value of null.

any idea why? Is this because the securitycontext is a non serializable object.

Do I need to use RemoteLoginContext?

please help.

thanks a lot

Padmaja Ragavendra

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2004 at 06:01 PM


    I was able to do a jndi lookup on the client side using the remote login api's.

    But on the server side I am not able to do a lookup of the security service or the context.

    I am getting a class cast exception.

    In the session bean I did a jndi.lookup(security)

    which I think gives the security service

    so should be able to cast it to the RemoteServiceReference

    When I cast it to that it gives a class cast exception.

    Any idea how I should get a securitycontext object on the server side I need it to do authorization.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.