1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

bypass LDAP basic authentication

Discussion in 'JSP' started by somannitin, Nov 8, 2011.

  1. somannitin

    somannitin New Member

    Joined:
    Nov 8, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hi All,
    I am relatively new to the world of webservers and java, so please pardon me for any mistakes i make in conveying my problem.
    THe problem is as following:
    we have a sunone webserver 1(abc.com), and a sun one webserver2(def.com).
    There is a jsp application in webserver 1.
    A button in the application in abc.com redirects the user to def.com(response.redirect("def.com")) . When the user clicks the button, this redirect information reaches the browser and the browser then sends the user to def.com.
    When the request hits def.com an LDAP authentication mechanism is activated. Since LDAP finds no authorization information the LDAP sends a response back to the browser, The browser inturn pop's up a authentication box. Please note that it is Basic authentication, base 64 encoded user pass.
    My question is can i include this base 64 encoding("Basic user:pass") in the redirect i am doing from abc.com such that it travels with the new request to def.com and thus the login happens in LDAP and no popup box is shown to the user?
    If it is how is this possible?
    Thanks in advance.
     
  2. somannitin

    somannitin New Member

    Joined:
    Nov 8, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    can anyone please help, or provide some clues even?
     

Share This Page