Re: <security/pam_appl.h> should be <pam/pam_appl.h> on MacOS

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Aaron Hillegass <aaron(at)bignerdranch(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: <security/pam_appl.h> should be <pam/pam_appl.h> on MacOS
Date: 2003-02-14 14:15:07
Message-ID: 200302141415.h1EEF8A05740@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


I have made the attached change to look for pam/pam_appl.h as well as
security/pam_appl.h. Fix will appear in 7.4.

---------------------------------------------------------------------------

Aaron Hillegass wrote:
> I decided to build 7.3.1 on MacOS 10.2.3 with PAM support.
>
> % ./configure --with-pam --with-openssl
> ...
> configure: error: header file <security/pam_appl.h> is required for PAM
>
> There is, however, a /usr/include/pam/pam_appl.h. So, I did a
> search/replace in configure and replaced it.
>
> % make
> ...
> gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
> -Wmissing-declarations -I../../../src/include -c -o auth.o auth.c
> auth.c:45:31: security/pam_appl.h: No such file or directory
> ...
> make[3]: *** [auth.o] Error 1
>
> So in auth.c, I did the same find/replace:
>
> #ifdef USE_PAM
> #include <pam/pam_appl.h>
>
> I added a file to /etc/pam.d for postgresql:
>
> % cat /etc/pam.d/postgresql
> auth required pam_nologin.so
> auth sufficient pam_securityserver.so
> auth sufficient pam_unix.so
> auth required pam_deny.so
> account required pam_permit.so
> password required pam_deny.so
> session required pam_uwtmp.so
>
> And then it just worked: my user login for the machine got me into
> psql.
>
> - Aaron
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 2.4 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message John Liu 2003-02-14 14:17:06 unsubscribe
Previous Message Bruce Momjian 2003-02-14 12:48:25 Re: porting on ITANIUM2 platform under HP-UX