SSL error: decryption failed or bad record mac (pg as Samba backend)

From: Fernando Schapachnik <fernando(at)mecon(dot)gov(dot)ar>
To: pgsql-general(at)postgresql(dot)org
Subject: SSL error: decryption failed or bad record mac (pg as Samba backend)
Date: 2005-03-11 15:40:37
Message-ID: 20050311154037.GB774@bal740r0.mecon.gov.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm trying to use an SSL-enabled (OpenSSL 0.9.7d) Postgres 7.3.9 as database
backend to Samba 3.0.11. On startup Samba opens a connection, and passes it to
every fork()ed process. On some scenarios (consistenly, when somebody tries to
log into a workstation after reboot), Samba spits:

SELECT ... (details ommited)
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

And the server log says:
[24129] LOG: SSL error: decryption failed or bad record mac
[24129] LOG: pq_recvbuf: recv() failed: Connection reset by peer

There is no problem when not using SSL. The Samba code doesn't have any
SSL-specifics, leaving it to libpq. Any ideas?

Thanks in advance.

Regards.

Fernando.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2005-03-11 15:51:09 Re: PostgreSQL still for Linux only?
Previous Message Bruce Momjian 2005-03-11 15:15:37 Re: PostgreSQL still for Linux only?