Sam,
Here is that patch that allows authpam to be placed anywhere in your
authmoduleslist.
The problem is that (under Linux at least) the getpwnam call fails with an
ENOENT if the user is unknown - this return code appears to be undocumented.
Chaining down the authmodules list required an EPERM return only. I felt
maybe this was too restrictive given what I'd discovered here.
This patch was tested with courier-0.36.1.20011210, kernel 2.4.12, and only
with authpam and authpgsql. I shall leave it to you to determine it's
overall worthyness.
Cheers, Alan
*** courier-0.36.0/authlib/authdaemond.c Tue Aug 21 02:23:44 2001
--- courier-0.36.1.20011210/authlib/authdaemond.c Thu Dec 20 03:44:51 2001
***************
*** 485,489 ****
return;
}
! if (errno != EPERM)
{
free(pp);
--- 485,489 ----
return;
}
! if (errno != EPERM && errno != ENOENT)
{
free(pp);
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users