LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-11-2012, 05:30 PM   #1
Felipe
Member
 
Registered: Oct 2006
Posts: 294

Rep: Reputation: 31
How to authenticate users in Apache using a cookie?


I want to authenticate a user based on a cookie using Apache:
For accessing a url, I request a cookie. That cookie identifies the users:
Quote:
Ej:
userAutentication="username@creation-time@hash"
The cookie "userAuthentication" contains the "username", the time the cookie was create and a hash function to ensure validity of the cookie.

The first time the user connects the url, the cookie is verified (checks that the hash is generated from username@creation-time). But the rest of the times that verification is not needed.

Can any tell me what modules do I have to use and an idea of how can it be done?

Thanks
 
Old 04-11-2012, 07:57 PM   #2
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware64 13.37 / 14.0
Posts: 127

Rep: Reputation: 45
I can't vouch for any of these, but you might want to consider mod_auth_tkt or mod_auth_cookie_mysql2/mod_auth_cookie_pgsql2.
 
Old 04-12-2012, 04:05 AM   #3
Felipe
Member
 
Registered: Oct 2006
Posts: 294

Original Poster
Rep: Reputation: 31
Thanks, I think it's what I was looking for, but I've to try it.
 
  


Reply

Tags
apache2, authentication


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Authenticate users to Apache by host/ISP and password wej Linux - Server 3 08-13-2010 03:30 PM
Using Active Directory to authenticate Apache users kenneho Linux - Server 4 09-10-2008 06:24 AM
Apache 2 is not working right when i try to authenticate users stormrider_may Linux - Networking 2 03-01-2006 05:06 AM
Apache reverse proxy and cookie momilla Linux - Networking 0 07-26-2005 09:58 AM
how to authenticate external users but bypass prompt on local LAN users? taiwf Linux - Security 5 07-13-2005 09:01 AM


All times are GMT -5. The time now is 05:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration