[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Re: 2.99.51-pre3 available

  Article: <Pine.GSO.4.10.9907131336430.25825-100000@press-gopher.uchicago.edu>
  Date:    Tue, 13 Jul 1999 13:43:40 -0500 (CDT)
  Author:  Roy C. Bixler <rcb@press-gopher.uchicago.edu>

> Thanks, Magnus.  Except for one problem, your patch was good.  The
> problem was that, since the shadow password file is only readable by
> 'root' and the 'smtpserver' runs as unprivileged user 'daemon',
> 'smtpserver' has insufficient privilege to read '/etc/shadow'.  If
> I re-write 'zpwmatch()' as below, authentication works:

Whoops, well untested it was :). Attached is a patch that tries to
implement support for PAM (it also includes the shadow patch and
the changes you made). This patch is untested but it compiles. 

I used the service_name zmailer_smtpauth, is there a standard name for
this service?

Autoconf searches for security/pam_appl.h and shadow.h. PAM is preferred
over shadow and and shadow is preferred over regular passwd in that
order ... my autoconf skills sucks. If you encounter problems with 
undefined reference messages when compiling smtpserver, remove the
-lshadow statement from smtpserver/Makefile.

Apply with: cd zmailer-2.99.51-pre3;zcat smtpauth-shadow-pam.gz | patch -p1


Magnus Sjögren <dat98msj@student3.lu.se>