Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
After browsing around, I found a few URLs with user managers (mostly not free): Following a link or two, I found a free, Perl-based user manager that might do your job (or might be modified to do so): http://www.locked-area.com/Products/DP/

A 'cheap' setup that wouldn't take much work to create might be a solution that just uses Apache's .htaccess / .htpasswd files and 'Basic' authentication. It's not terribly secure, but it may be appropriate for the job. It doesn't use databases, but doesn't take much time to set up either. It doesn't support some of the fancier features (inactivity timeouts, eavesdropping protection, user self-registration).

I'm guessing that's what the free product from 'locked-area' does, but haven't downloaded it or used it.

As wheels go, this one is pretty simple if you have to roll your own.

The basic flow of a homebrewed login app is something like:
  1. Every page checks the incoming request for a valid authorization cookie, redirect to login screen if not found.
  2. HTTPS Login screen asks for username, password, other data (perhaps a resource or group the user wants to join)
  3. After the username & password are validated and match, record the IP address & username in a token database with a new unique token ID
  4. Send the user their token ID as a cookie
  5. Send them to the page they wanted to see, as long as you keep getting back that valid cookie (and the user's IP address matches the IP you've stored for that token)


Depending on what resources the site wants to provide, you may be able to install something like PhpBB or one of the free Wikis. Those usually come with a complete user-management system (including self-registration, timeouts, etc...) and write to a MySQL backend, which you can access just as easily with Perl. Some rewriting may let you modify the main functions of the BB or Wiki to use your Perl scripts instead.
Update: More links:

In reply to Re: ISO user-registration package by saintly
in thread ISO user-registration package by tlm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-20 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found