Trying to getRemoteUser() on Tomcat after authentication with mod_auth_pam

Discussion in 'Java' started by goykhmanster@gmail.com, Jun 8, 2006.

  1. Guest

    Hi

    I am trying to get a value of request.getRemoteUser() and I get null. I
    am using mod_auth_pam authentication package on Apache that
    authenticates user against Active Directory.

    Authentication piece works fine, but I need to grab user ID and I can't
    seem to find a way. My app is running on Apache 2, Tomcat 5.5 on Fedora
    Core 3 and as I go into my app i get prompted for user name (which is
    actually Domain\username) and password.

    There has to be a way to get user data into request header and be able
    to read it in a servlet, but if someone could give me a pointer, it
    would be great. Thanks in advance.
     
    , Jun 8, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sam
    Replies:
    3
    Views:
    11,284
  2. schmen
    Replies:
    0
    Views:
    1,391
    schmen
    May 2, 2004
  3. Replies:
    5
    Views:
    527
  4. Silva
    Replies:
    0
    Views:
    609
    Silva
    Dec 7, 2007
  5. Andrew Thompson

    Re: The getRemoteUser() returns null

    Andrew Thompson, Dec 7, 2007, in forum: Java
    Replies:
    0
    Views:
    382
    Andrew Thompson
    Dec 7, 2007
Loading...

Share This Page