Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.432.063 Times

Apache2::AuthCookieDBI 2.03

  Date Added: March 10, 2010  |  Visits: 1.088

Apache2::AuthCookieDBI

Report Broken Link
Printer Friendly Version


Product Homepage
Download (98 downloads)



Apache2::AuthCookieDBI is an AuthCookie module backed by a DBI database. SYNOPSIS # In httpd.conf or .htaccess PerlModule Apache2::AuthCookieDBI PerlSetVar WhatEverPath / PerlSetVar WhatEverLoginScript /login.pl # Optional, to share tickets between servers. PerlSetVar WhatEverDomain .domain.com # These must be set PerlSetVar WhatEverDBI_DSN "DBI:mysql:database=test" PerlSetVar WhatEverDBI_SecretKey "489e5eaad8b3208f9ad8792ef4afca73598ae666b0206a9c92ac877e73ce835c" # These are optional, the module sets sensible defaults. PerlSetVar WhatEverDBI_User "nobody" PerlSetVar WhatEverDBI_Password "password" PerlSetVar WhatEverDBI_UsersTable "users" PerlSetVar WhatEverDBI_UserField "user" PerlSetVar WhatEverDBI_PasswordField "password" PerlSetVar WhatEverDBI_CryptType "none" PerlSetVar WhatEverDBI_GroupsTable "groups" PerlSetVar WhatEverDBI_GroupField "grp" PerlSetVar WhatEverDBI_GroupUserField "user" PerlSetVar WhatEverDBI_EncryptionType "none" PerlSetVar WhatEverDBI_SessionLifetime 00-24-00-00 # Protected by AuthCookieDBI. < Directory /www/domain.com/authcookiedbi > AuthType Apache2::AuthCookieDBI AuthName WhatEver PerlAuthenHandler Apache2::AuthCookieDBI->authenticate PerlAuthzHandler Apache2::AuthCookieDBI->authorize require valid-user # or you can require users: require user jacob # You can optionally require groups. require group system < /Directory > # Login location. < Files LOGIN > AuthType Apache2::AuthCookieDBI AuthName WhatEver SetHandler perl-script PerlHandler Apache2::AuthCookieDBI->login < /Files > This module is an authentication handler that uses the basic mechanism provided by Apache2::AuthCookie with a DBI database for ticket-based protection. It is based on two tokens being provided, a username and password, which can be any strings (there are no illegal characters for either). The username is used to set the remote user as if Basic Authentication was used. On an attempt to access a protected location without a valid cookie being provided, the module prints an HTML login form (produced by a CGI or any other handler; this can be a static file if you want to always send people to the same entry page when they log in). This login form has fields for username and password. On submitting it, the username and password are looked up in the DBI database. The supplied password is checked against the password in the database; the password in the database can be plaintext, or a crypt() or md5_hex() checksum of the password. If this succeeds, the user is issued a ticket. This ticket contains the username, an issue time, an expire time, and an MD5 checksum of those and a secret key for the server. It can optionally be encrypted before returning it to the client in the cookie; encryption is only useful for preventing the client from seeing the expire time. If you wish to protect passwords in transport, use an SSL-encrypted connection. The ticket is given in a cookie that the browser stores. After a login the user is redirected to the location they originally wished to view (or to a fixed page if the login "script" was really a static file). On this access and any subsequent attempt to access a protected document, the browser returns the ticket to the server. The server unencrypts it if encrypted tickets are enabled, then extracts the username, issue time, expire time and checksum. A new checksum is calculated of the username, issue time, expire time and the secret key again; if it agrees with the checksum that the client supplied, we know that the data has not been tampered with. We next check that the expire time has not passed. If not, the ticket is still good, so we set the username. Authorization checks then check that any "require valid-user" or "require user jacob" settings are passed. Finally, if a "require group foo" directive was given, the module will look up the username in a groups database and check that the user is a member of one of the groups listed. If all these checks pass, the document requested is displayed. If a ticket has expired or is otherwise invalid it is cleared in the browser and the login form is shown again..

Requirements: No special requirements
Platforms: Linux
Keyword: Authcookiedbi Libraries Login Module Password Perlsetvar Perlsetvar Whateverdbi Programming Time User Username Username And Password Whateverdbi
Users rating: 0/10

License: Freeware Size: 22.53 KB
USER REVIEWS
More Reviews or Write Review


APACHE2::AUTHCOOKIEDBI RELATED
Security Tools  -  PAM_Extern 0.3
PAM_Extern is a PAM module that hands the username and password to an external application or shellscript for further handling. The theory is that while a lot of people might be able to create authentication schemes, few are are able to do so...
9.22 KB  
Modules  -  Login Authenticate 1.0
This brings up a password window where the user has to enter a username and password. it then checks with Mysql to see if the username and password are real (compares it to the original). it then will load a page for the user to see or it will...
 
Libraries  -  Apache::AuthPerLDAP 0.5
Apache::AuthPerLDAP is a mod_perl PerLDAP Authentication Module. SYNOPSIS # Authentication Realm and Type (only Basic supported) AuthName "Foo Bar Authentication" AuthType Basic # Any of the following variables can...
3.07 KB  
Modules  -  iTweak Login 6.x-1.14
iTweak Login module provides very useful tweaks for the standard user login form: * Lightweight (code under 9k) and powerful * Complements nicely functions of Login Toboggan module (if it is present) * Works with any theme (that does not already...
10 KB  
Modules  -  Ajax Login/Register 6.x-1.5
This module provides a smooth way for the user to login and register at any Drupal siteIt has the following features: * This module provides a block with 2 links (Login, Register) for the anonymous user. * When the user clicks on Login or register...
10 KB  
Modules  -  Fancy Login 7.x-1.0-beta2
OverviewFancy Login adds javascript based, lightbox-style login functionality to your site. When the user clicks on any link that links to /user/login, they screen dims and a login box is created in the center of the...
30.72 KB  
Modules  -  Open Login 6.x-1.1
Open login module adds handy widget to OpenID login form.This module do not have any logic for OpenID authentication. All authentication is come from system openid module.When user clicks on the name of openid provider - javascript substitutes...
30.72 KB  
Modules  -  Login one time 6.x-2.0-rc2
Login one time provides functions for emailing a one-time login link to a user. You can also choose the pages they will land on.The use case for this is where your users can't figure out how to use a username and password - so they request an...
10 KB  
Modules  -  Fast Login 5.x-1.x-de
This module provides tokens with login ticket, which can be used in emails for automatic login of users via links from emails.Admins can build different tokens for different purposes.To install, place the entire module folder into your modules...
10 KB  
Libraries  -  Mon::Client 0.11
Mon::Client is a Perl module with methods for interaction with Mon client. SYNOPSIS use Mon::Client; Mon::Client is used to interact with "mon" clients. It supports a protocol-independent API for retrieving the status of the mon server, and...
23.55 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB