Using AuthName with mod_rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxx as I used
ravi.verma@xxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux