LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-20-2003, 03:53 AM   #1
Ramon_E
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
.htaccess problem


Hi all,

I am trying to accomplish the following.

On domain one I have a password protected section, users log in to this section by a username and password. In this section is a particular page with downloadable stuff on it.

On domain two I also have a protected section, after users have logged in onto this domain I want them to be able to click a link and have access to the particular page on domain one, without the need to verificate themselves once again.

Basically I need to have the .htaccess on domain one configured to that it alows access from domain2.com/page.html

How can I do this?


Thanks to you all for your time!
 
Old 10-20-2003, 01:48 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Add their user and password created in the domain one's htpasswd file possibly? I'm not sure if this would work as I don't or have never set something like this up myself.
 
Old 10-20-2003, 02:37 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I don't think this will work due to the security restrictions on the browsers. They will only sned your username and passwords to hosts that you say it is ok to authenticate to. Imagine that the first page on my site running a custom web server asked you for a username and password and your browser just sent the last one that it used.

If you write the pages with perl or php you could check the referer information but I think that is all.
 
Old 10-20-2003, 07:32 PM   #4
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
You might be able to get it working using the Apache modules mod_rewrite or mod_auth_cache. Personally I would go with mod_auth_cache, as mod_rewrite can be a real resource hog. Check out the mod_auth_cache home page at sourceforge:

http://mod-auth-cache.sourceforge.net/

They actually have a very basic how-to on setting up a single sign-on authentication system across multiple domains.

-----Edit------

It doesn't look like they've release a version for Apache 2.0.

Last edited by Capt_Caveman; 10-20-2003 at 08:39 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache problem .htaccess fipeso Linux - Networking 2 05-12-2005 11:56 PM
Strange htaccess problem (it ignored!) belorion Linux - Software 2 03-01-2005 02:32 PM
.htaccess problem lothario Linux - Software 0 01-22-2005 05:20 AM
problem getting .htaccess files work wiggywag Slackware 6 02-17-2004 01:21 PM
.htaccess problem mwmethe Linux - Security 1 08-31-2002 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration