--00032555abdae5bf5f0474b6f35d
Content-Type: text/plain; charset=ISO-8859-1
Hi,
I'm trying to configure authentication to postgresql 8.4 on FreeBSD Current
with pam, but when I restart the server I can't login into database using
pam authentication.
My pg_hba.conf looks:
local all all md5
host all all 192.168.1.0/24 pam
pamservice=/etc/pam.d/postgres
and my file in pam.d directory looks:
auth sufficient pam_opie.so no_warn
no_fake_prompts
auth requisite pam_opieaccess.so no_warn allow_local
auth required pam_unix.so no_warn
try_first_pass
account required pam_login_access.so
account required pam_unix.so
session required pam_permit.so
password required pam_unix.so no_warn
try_first_pass
when i try to connetc from remote host I get information: psql: FATAL: PAM
authentication failed for user "golebiej"
in postgres log I see that packter wiht password came to server but it
dosen't authenticate me
ep 29 16:55:09 postgres[1215]: [686-1] DEBUG: forked new backend, pid=1297
socket=8
Sep 29 16:55:09 postgres[1297]: [686-1] LOG: connection received:
host=192.168.1.24 port=15150
Sep 29 16:55:09 postgres[1297]: [687-1] DEBUG: received password packet
Sep 29 16:55:09 postgres[1297]: [688-1] LOG: pam_authenticate failed:
authentication error
Sep 29 16:55:09 postgres[1297]: [689-1] FATAL: PAM authentication failed
for user "golebiej"
Sep 29 16:55:09 postgres[1297]: [690-1] DEBUG: shmem_exit(1): 0 callbacks
to make
Sep 29 16:55:09 postgres[1297]: [691-1] DEBUG: proc_exit(1): 1 callbacks
to make
Sep 29 16:55:09 postgres[1297]: [692-1] DEBUG: exit(1)
Sep 29 16:55:09 postgres[1297]: [693-1] DEBUG: shmem_exit(-1): 0 callbacks
to make
Sep 29 16:55:09 postgres[1297]: [694-1] DEBUG: proc_exit(-1): 0 callbacks
to make
Sep 29 16:55:09 postgres[1215]: [687-1] DEBUG: reaping dead processes
Sep 29 16:55:09 postgres[1215]: [688-1] DEBUG: server process (PID 1297)
exited with exit code 1
Is anybody can help me solve this problem?
Best regards,
Kuba
--00032555abdae5bf5f0474b6f35d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi,<br><br>I'm trying to configure authentication to postgresql 8.4 on =
FreeBSD Current with pam, but when I restart the server I can't login i=
nto database using pam authentication.<br><br>My=A0 pg_hba.conf looks:<br>
local=A0 all all md5<br>host=A0=A0=A0 all=A0=A0=A0=A0 all=A0=A0=A0=A0 <a hr=
ef=3D"http://192.168.1.0/24">192.168.1.0/24</a> pam=A0=A0=A0=A0 pamservice=
=3D/etc/pam.d/postgres<br><br>and my file in pam.d directory looks:<br><br>=
auth=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 sufficient=A0=A0=A0=A0=A0 pam_opie.so=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 no_warn no_fake_prompts<br>
auth=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 requisite=A0=A0=A0=A0=A0=A0 pam_opiea=
ccess.so=A0=A0=A0=A0=A0=A0 no_warn allow_local<br>auth=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0 required=A0=A0=A0=A0=A0=A0=A0 pam_unix.so=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0 no_warn try_first_pass<br><br>account=A0=A0=A0=A0=A0=A0=
=A0=A0 required=A0=A0=A0=A0=A0=A0=A0 pam_login_access.so<br>
account=A0=A0=A0=A0=A0=A0=A0=A0 required=A0=A0=A0=A0=A0=A0=A0 pam_unix.so<b=
r><br>session=A0=A0=A0=A0=A0=A0=A0=A0 required=A0=A0=A0=A0=A0=A0=A0 pam_per=
mit.so<br><br><br>password=A0=A0=A0=A0=A0=A0=A0 required=A0=A0=A0=A0=A0=A0=
=A0 pam_unix.so=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 no_warn try_first_pass<br>=
<br>when i try to connetc from remote host I get information: psql: FATAL:=
=A0 PAM authentication failed for user "golebiej"<br>
<br>in postgres log I see that packter wiht password came to server but it =
dosen't authenticate me<br><br>ep 29 16:55:09=A0 postgres[1215]: [686-1=
] DEBUG:=A0 forked new backend, pid=3D1297 socket=3D8<br>Sep 29 16:55:09=A0=
postgres[1297]: [686-1] LOG:=A0 connection received: host=3D192.168.1.24 p=
ort=3D15150<br>
Sep 29 16:55:09=A0 postgres[1297]: [687-1] DEBUG:=A0 received password pack=
et<br>Sep 29 16:55:09=A0 postgres[1297]: [688-1] LOG:=A0 pam_authenticate f=
ailed: authentication error<br>Sep 29 16:55:09=A0 postgres[1297]: [689-1] F=
ATAL:=A0 PAM authentication failed for user "golebiej"<br>
Sep 29 16:55:09=A0 postgres[1297]: [690-1] DEBUG:=A0 shmem_exit(1): 0 callb=
acks to make<br>Sep 29 16:55:09=A0 postgres[1297]: [691-1] DEBUG:=A0 proc_e=
xit(1): 1 callbacks to make<br>Sep 29 16:55:09=A0 postgres[1297]: [692-1] D=
EBUG:=A0 exit(1)<br>
Sep 29 16:55:09=A0 postgres[1297]: [693-1] DEBUG:=A0 shmem_exit(-1): 0 call=
backs to make<br>Sep 29 16:55:09=A0 postgres[1297]: [694-1] DEBUG:=A0 proc_=
exit(-1): 0 callbacks to make<br>Sep 29 16:55:09=A0 postgres[1215]: [687-1]=
DEBUG:=A0 reaping dead processes<br>
Sep 29 16:55:09=A0 postgres[1215]: [688-1] DEBUG:=A0 server process (PID 12=
97) exited with exit code 1<br><br>Is anybody can help me solve this proble=
m?<br><br>Best regards,<br>Kuba<br>
--00032555abdae5bf5f0474b6f35d--
