Skip to Content

Custom login module creation

Hi Experts,

I have followed the following link and built a custom login module class.

http://help.sap.com/saphelp_nw70/helpdata/en/46/3ce9402f3f8031e10000000a1550b0/frameset.htm

I have followed all the steps mentioned like implemented the login module code, compiled and exported this class as a JAR, created a library project, made a reference to the Security Provider of the J2EE Engine, Set classpath to the JAR, built the SDA file and deployed the login module to the J2EE Engine. I have then configured the login module usage, added a reference to the Security Provider service classloader and configured the application to use the login module.

Following this, I am calling the portal URL with the parameter user_name=<username> appended to it, as the login module class extracts thet username from this request parameter passed in the URL. The URL that I call is of the format http://<hostname>:<portnumber>/irj/portal?user_name=<username>

But when I call this URL, the authentication doesn't seem to succeed and the user is not logged in.

Can anyone help me in finding out where I may be going wrong or missing out on something?

Regards,

Saurabh

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jun 07, 2012 at 03:54 PM

    Hi,

    Did you prefix the LoginModuleClassLoaders with library:<provider name>~<library>

    For instance: library:mycompany.com~AwesomeLoginModuleLibrary

    Best regards,

    Guillaume

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Guillaume GARCIA

      Hi Guillaume,

      My windows username and Portal username is same. I can able to capture the windows username using jsp. Now my requirement is i need to pass the username directly to the above coding for autologin.

      Could you please help me regarding this

      Thanks and Regards,

      Manoj Kumar

  • Posted on Jun 06, 2012 at 10:49 AM

    Hi Experts,

    Can anyone please update if this has been done by anyone and has it worked?

    Regards,

    Saurabh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2012 at 02:04 PM

    Hi,

    How are you authenticating the user? How does your authentication stack look like?

    Is the custom LM successfully loaded? Run a diagtool trace and capture the security traces along with your custom class traces which should give you a better idea of what is happening.

    Cheers!!

    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.