Kerberos on win32

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "PostgreSQL-patches" <pgsql-patches(at)postgresql(dot)org>
Subject: Kerberos on win32
Date: 2005-03-15 22:26:36
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE6C7090@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Hi!

Attached patch makes kerberos work on the client-side on win32. This
makes it possible to use postgresql on linux in an active directory
kerberos environment, with windows clients (with the MIT kerberos for
win32 kit installed).
I have not yet tested the server side of things, so I expect it not to
work fully yet. Hopefully that can also be fixed, but client was my main
concern right now.

I have one uncertainty about the patch. From comments in the code, it
seems to me that we always run with the socket in non-blocking mode. The
kerberos code previously had code to restore blocking mode after it ran,
and I've replaced that with code that always puts it in non-blocking
mode. It certainly works for my tests, but it wuold be good if someone
could confirm that is the case. If not, it'll have to be extended to do
this saving again.

Comments? Is there any chance of getting this in as a bugfix for 8.0.2,
considering it's a fairly small patch?

//Magnus

Attachment Content-Type Size
krb.patch application/octet-stream 5.4 KB

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2005-03-15 22:42:23 WIP: avoiding tuple construction/deconstruction overhead
Previous Message Thomas Hallgren 2005-03-15 18:07:42 Fix that deals with unusable custom variables.