Hello,
On 08.06.15 20:01, Sam Varshavchik wrote:
>But let's try the other way, first. Can you try patching
>courier-authlib as follows, and see how well it works. If this works,
>then all that needs to be done is make this part conditional upon a
>setting.
works with authdaemon, thank you.
>diff --git a/courier-authlib/authpam.c b/courier-authlib/authpam.c
>index 9d40e69..49d9bb6 100644
>--- a/courier-authlib/authpam.c
>+++ b/courier-authlib/authpam.c
>@@ -150,6 +150,25 @@ static int dopam(pam_handle_t **pamh, int *started)
> DPRINTF("pam_acct_mgmt failed, result %d", retval);
> }
> }
>+
>+ if (retval == PAM_SUCCESS)
>+ {
>+ retval=pam_open_session(*pamh, 0);
>+ if (retval != PAM_SUCCESS)
>+ {
>+ DPRINTF("pam_open_session failed, result %d", retval);
>+ }
>+ }
>+
>+ if (retval == PAM_SUCCESS)
>+ {
>+ retval=pam_close_session(*pamh, 0);
>+ if (retval != PAM_SUCCESS)
>+ {
>+ DPRINTF("pam_close_session failed, result %d", retval);
>+ }
>+ }
>+
> if (retval == PAM_SUCCESS)
> {
> DPRINTF("dopam successful");
>
--
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Your mouse has moved. Windows NT will now restart for changes to take
to take effect. [OK]
------------------------------------------------------------------------------
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users