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 [email protected] 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/[email protected] as I used
[email protected] 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: [email protected]
For additional commands, e-mail: [email protected]