On Sun, 10 Mar 2002 10:43:34 -0500, Sam Varshavchik
<[EMAIL PROTECTED]> wrote:
>Marc Haber writes: 
>> I am now trying to adapt that module to the new authentication code.
>> If I understand correctly, I am expected to change the code in
>> preauthcustom.c to do what I need. If this the recommended way of
>> creating a custom auth module? Or is it a better idea t make a copy of
>> the authcustom, creating an authscript module? How do I adapt the
>> build process to have the new module automatically built?
>
>It's easier to simply modify authcustom.  Creating a new module requires 
>some hairy changes to the Makefile. 

OK.

>> Also, the new code asks for a function that simply verifies if the
>> user account in question exists. Since I am validating against a
>> background POP3 system, I can't say if an account exists. The only
>> thing I can do is verifying if a given password belongs to a given
>> account. If either password or account is wrong, I get the same error
>> state, so I can't say if this is the wrong password for an existing
>> account. What is my authpre function to return in this case? Should I
>> always return "account exists"?
>
>That's a problem.  Not only does the function need to return an indication 
>if the account exists, but also what it's home directory and uid/gid are. 

Is that also necessary for straight POP/IMAP authentication? These are
the only courier modules that I use.

In this particular setup, I can determine which uid/gid/home dir the
account would have if it existed. So it would probably be possible to
always return "account exists" and then treat a non-existing account
as a password failure.

What is the recommended method to get special parameters into the auth
module? Is using an environment variable discouraged?

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to