I'm building in Perl the cgi form elements of a website which will likely be hosted as part of a drupal installation. We will need a user authentication system to control access to all functions (except the generate_sample and create_new_account features). Normally I use CGI::Session::Auth::DBI for authentication / authorization functions, and perhaps I ought to do so again. But I'm guessing that we might build some website functions directly in drupal and that a unified login would make sense: same userID's and passwords, even the same sessions, so that clients don't have to login multiple times to use all the features of the site.

Does anyone here have any experience with such an integration; any advise about how this might best be done?

All ideas are appreciated.

-- Hugh

UPDATE:

I posted a note on the drupal site linked by the anonymous monk below. I also sent private messages to those who had previously posted to that thread. I'm now thinking along the lines of writing and publishing a couple of new modules to be called, tentatively, CGI::Session::Auth::DBI::MyDrupal and CGI::Session::Auth::DBI::PgDrupal, which would integrate with drupal's existing user/ group/ session management schema and API, giving a co-existing perl script access to an integrated login with its hosting drupal site. If anyone here has a similiar itch to scratch, I would certainly appreciate your collaboration on this project. -- HE

if( $lal && $lol ) { $life++; }

In reply to Integrating Perl cgi forms with Drupal site, any advise on unified login issue? by hesco

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.