Re: PAM e POP3

Pawel S. Veselov (vps@phoenix.math.spbu.ru)
Tue, 7 Sep 1999 18:11:04 +0400 (MSD)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--331548134-2010046044-936713464=:2582
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello, Alfredo!

On Tue, 7 Sep 1999, Alfredo Scotto wrote:

>Hi at All,
>Samebody have or know a POP3 server with PAM as
>User authentification?

Here is the patch for cucipop-1.31, that makes it understands PAM.

You need to add '-DUSE_PAM' to Makefile's CFLAGS and '-lpam -ldl' to LDFLAGS.
The /etc/pamd.conf section is the following:

pop3 auth required pam_pwdb.so
pop3 account required pam_pwdb.so

Bye.

--
Humans are communications junkies.  We just can't get enough.
		-- Alan Kay

--
    With best of best regards, Pawel S. Veselov (aka Black Angel)
       Web page : http://i.am/BlackAngel | ICQ UIN : 5252265
                   Internet e-mail : blackangel@i.am

--331548134-2010046044-936713464=:2582 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="cucipop.pam.diff" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.10.9909071811040.2582@phoenix.math.spbu.ru> Content-Description: Content-Disposition: attachment; filename="cucipop.pam.diff"

ZGlmZiAtdXJOIGN1Y2lwb3AtMS4zMS5vbGQvYXV0aGVudGljYXRlLmMgY3Vj aXBvcC0xLjMxL2F1dGhlbnRpY2F0ZS5jDQotLS0gY3VjaXBvcC0xLjMxLm9s ZC9hdXRoZW50aWNhdGUuYwlUdWUgU2VwICA3IDE2OjI0OjI5IDE5OTkNCisr KyBjdWNpcG9wLTEuMzEvYXV0aGVudGljYXRlLmMJVHVlIFNlcCAgNyAxODow Nzo1NiAxOTk5DQpAQCAtMzAsNiArMzAsMTUgQEANCiAjaW5jbHVkZSA8c3Ry aW5nLmg+DQogI2luY2x1ZGUgPHN0ZGxpYi5oPg0KIA0KKyNpZmRlZiBVU0Vf UEFNDQorI3VuZGVmI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0KKyAgICBiemVybyhtcHcsIHN0cmxlbihwdykr MSk7DQorICAgIHN0cmNweShtcHcsIHB3KTsNCisgICAgQ0FMTF9QQU0ocGFt X2F1dGhlbnRpY2F0ZShwYW1oLCAwKSk7DQorICAgIENBTExfUEFNKHBhbV9h Y2N0X21nbXQocGFtaCwgMCkpOw0KKyAgICBDQUxMX1BBTShwYW1fZW5kKHBh bWgsMCkpOw0KKyAgICByZXR1cm4gMTsNCit9DQorI2VuZGlmDQogDQogY29u c3QgY2hhciphdXRoX2dldHNlY3JldChwYXNzKWNvbnN0IGF1dGhfaWRlbnRp dHkqY29uc3QgcGFzczsNCiB7IHJldHVybiBhdXRoaS51c2Vyc2VjcmV0Ow0K

--331548134-2010046044-936713464=:2582-- - To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.rutgers.edu