<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {margin-top:.1in;
        margin-right:0in;
        margin-bottom:12.0pt;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Verdana;
        color:navy;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p style='background:white'><font size=2 color="#003150" face=Verdana><span
style='font-size:9.5pt;font-family:Verdana;color:#003150'>I downloaded the
Webserver Authentication module because it's very similar to the module that I
need to write for my own site. It's a simple module, but I can't get it to work
and I've hit a brick wall. Nothing works - Drupal doesn't recognize when I'm
logged into my other authentication system, let alone create Drupal
registrations on the fly. It doesn't even appear that the hook_auth module is
being called, but I can't trace through the execution because Drupal doesn't
use output buffers so inserting echo statements causes errors.<o:p></o:p></span></font></p>
<p style='background:white'><font size=2 color="#003150" face=Verdana><span
style='font-size:9.5pt;font-family:Verdana;color:#003150'>I have tested my
login and authentication functions in a separate test program, so I know that
they work. I don't know why my module doesn't work. It's probably something
simple, but there is virtually no documentation on authentication modules, and
I can't figure it out for myself because I can't trace through execution with
echo statements. I need information on these basic questions:<o:p></o:p></span></font></p>
<p style='background:white'><font size=2 color="#003150" face=Verdana><span
style='font-size:9.5pt;font-family:Verdana;color:#003150'>- Which hook
functions are called when (and not just from within the Drupal code, but from
what user action)? I thought that hook_auth() might be called when the user
logged in (that was a wild guess), but I can't get Drupal to call this function
no matter what I do.<o:p></o:p></span></font></p>
<p style='background:white'><font size=2 color="#003150" face=Verdana><span
style='font-size:9.5pt;font-family:Verdana;color:#003150'>- Exactly how the
returns of each function are used - in what other parts of Drupal. Without
knowing this, I don't know what's required. In particular for hook_auth, but
also for hook_info. When/how are the hook_info functions used? By what part of
Drupal? What might call these, and why?<o:p></o:p></span></font></p>
<p style='background:white'><font size=2 color="#003150" face=Verdana><span
style='font-size:9.5pt;font-family:Verdana;color:#003150'>- What values are set
in the database to control authentication, and what does each value mean? In
particular, what is the meaning of the different values for "status"
in the user table?<o:p></o:p></span></font></p>
<p style='background:white'><font size=2 color="#003150" face=Verdana><span
style='font-size:9.5pt;font-family:Verdana;color:#003150'>- How can I echo
values while the script is executing to I can debug my modules???????????????<o:p></o:p></span></font></p>
<p style='background:white'><font size=2 color="#003150" face=Verdana><span
style='font-size:9.5pt;font-family:Verdana;color:#003150'>Please, someone help.
I've posted message after message, and no one helps. Thanks in advance.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'><o:p> </o:p></span></font></p>
</div>
</body>
</html>