Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 3 of 3
  1. #1
    noritaka Guest

    Default getRemoteUser Apache in Hyperion

    Hi,

    I'm trying to get the Apache RemoteUser in Hyperion. I don't want to get the hyperion user, but the Apache one.

    The standard java method getRemoteUser doesn't work (returns null). I think that it's related to mod_jk (I've found a lot of info in google with "getRemoteUser null" related to mod_jk... But the workaround is to modify Tomcat, and hyperion doesn't use Tomcat)

    Anybody has an advice ?

    Thanks in advance.

  2. #2
    Join Date
    Feb 2007
    Posts
    41

    Default

    i dont understand your your problem? can you explain it a little bit more in detail? what is apache remote user? and about what methode "getRemoteUser" are you talking about?

  3. #3
    noritaka Guest

    Default solved !

    Apache remote user is an environment variable which is set by apache when you protect a virtualhost or a directory by using auth_basic, or any other auth module of Apache. It contains the userid of the user.

    You can access it from your application (in php, or java, etc...) to know who is using it.

    GetRemoteUser is the standard java method to get the remote user : http://java.sun.com/j2ee/sdk_1.3/tec...getRemoteUser()

    Anyway, I have solve my problem : the problem was that when you use mod_cas (another auth module, used for sso) you must use a location directive in your vhost, and not a directory directive, if you want to get the environment variable.

    Next, the only thing you need to do to get the name of the remote user is to use getHeader ( remotecas ) (remote_user still don't work, but remotecas is ok).

    Once you have the remote user in Login.java, it's very easy to casify openxchange.

    What is cas : http://www.ja-sig.org/products/cas/index.html

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •