httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Verma" <>
Subject Using AuthName with mod_rewrite
Date Thu, 18 Dec 2008 07:18:57 GMT
Dear Friends,

I am new to Apache and mod_rewrite. I have a challenge to append the
AuthName to the URL.

I am using the following directive to protect the location / with a popup
and user data coming from an LDAP server.

<Location />
      AuthzLDAPMethod ldap
      AuthzLDAPUserBase ou=People,dc=example,dc=com
      AuthzLDAPUserKey uid
      AuthzLDAPUserScope base
      AuthType Basic
      AuthName "GRRRR"
      require valid-user

My email id is a valid userid in the ldap server.

Now I need to write a rule so that I could rewrite / to an URL which looks
as follows.
http://localhost/home.seam? as I used as the valid-user.

When I use
RewriteEngine on
RewriteCond %{REMOTE_USER} ^
RewriteRule  ^/$   http://localhost/home.seam?userid=%{REMOTE_USER} [L]

All I get is

I appreciate your help.

Kind regards.

Ravi Verma
Chief Executive Officer
Telecommand Software and Services
3175 Sunset Blvd, Suite 104-B
Rocklin, CA 95677

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message