httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Verma" <ravi.ve...@telecommand.com>
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
      AuthzLDAPServer 10.2.1.86
      AuthzLDAPUserBase ou=People,dc=example,dc=com
      AuthzLDAPUserKey uid
      AuthzLDAPUserScope base
      AuthType Basic
      AuthName "GRRRR"
      require valid-user
</Location>

My email id ravi.verma@telecommand.com 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?userid=ravi.verma@telecommand.com as I used
ravi.verma@telecommand.com 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
http://localhost/home.seam?userid=

I appreciate your help.

-- 
Kind regards.

Ravi Verma
Chief Executive Officer
Telecommand Software and Services
3175 Sunset Blvd, Suite 104-B
Rocklin, CA 95677
Phone:9167053261
Fax:9169142008
www.telecommand.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message