Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XomJy-0004Il-9C for pgsql-jdbc@arkaria.postgresql.org; Thu, 13 Nov 2014 04:47:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XomJx-000205-Hw for pgsql-jdbc@arkaria.postgresql.org; Thu, 13 Nov 2014 04:47:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XomJv-0001zw-L3 for pgsql-jdbc@postgresql.org; Thu, 13 Nov 2014 04:47:47 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XomJq-0008Ck-MK for pgsql-jdbc@postgresql.org; Thu, 13 Nov 2014 04:47:46 +0000 Received: from ayaki.localdomain (pa49-183-144-141.pa.vic.optusnet.com.au [49.183.144.141]) by mrelayeu.kundenserver.de (node=mreue004) with ESMTP (Nemesis) id 0Lzna3-1Y2x9F0Fe7-014yXL; Thu, 13 Nov 2014 05:47:39 +0100 Message-ID: <546437E1.3050508@2ndquadrant.com> Date: Thu, 13 Nov 2014 12:47:29 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: PostgreSQL JDBC Subject: [PATCH] Native SSPI support for Windows single-sign-on Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:Zz4IbZ7zs1BuAVqkQPo/vg2GvJV5pGE+71g4l66/tJC FaC+kd9TNdkRSOkDLt+ZHDailEBik9Ccf6Pn4T9KQ5kUo0JEzg LwPrqHE8vuQ2ldFrOoXJR1FNrmidqpxMKWnhYEmepj9YyyBSJy ieSajLmjEspYGzkT6aw7H1wINolnqOKkU1aZ3dOt9AM/kRMrcG ObyLpWQpBto+DY2XL/rREl/kFJchGHIEDqKmZxi/kL06ckup73 +wVSLfEbHRJsaLAaxkpYzP9RlRZm4whiiY4CaZmcH7BrRQ3z/K qJ4GtJnP2UoGtH5S8XWyRSRilbawIs+NaTekh74s7JWArzzskI wgP++49yMoQ98IpJ3nB2mYYCp8f9Xi99bT8Tb/MKr X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Hi all I've published a patch that adds native SSPI support for Windows to PgJDBC. It's a bit bigger than my usual, and it's somewhat intrusive in the build system, so I'd appreciate comments and review before merging. https://github.com/pgjdbc/pgjdbc/pull/212 Comments on the core change are on the primary commit that adds SSPI support: https://github.com/ringerc/pgjdbc/commit/f9e8f7191e50e1988764e925d99f8b176219c394 The build system changes are non-trivial, and introduce greater use of maven-ant-tasks. I haven't been able to test the maven snapshot upload code - I can't build the docs, and there's no documentation on how the docs are built, what environment setup is required, etc. Dave, if you can explain what's needed to build the docs I'll test that part out. The build process now: * Downloads and imports the Waffle-JNA POM so it can determine the versions of JNA and slf4j that Waffle uses * Generates a POM and populates it with dependency declarations for Waffle-JNA, JUnit, etc * Downloads the declared dependencies * Extracts dependency subsets from the PgJDBC POM for 'compile', 'runtime' and 'test' scopes as Ant filesets * Copies the dependency jars into lib/ for use by IDEs and tools (the build doesn't use them from there) * Generates build/pom/pom.xml directly from the declarations in build.xml and build.properties, obsoleting src/pom/pom.xml (which is removed). * Adds dependency jars via the extracted filesets to javac tasks where appropriate * Via the new "ant dist" target, adds a new "ant dist" target that creates a zip file of the driver jar, dependency jars, README/license/etc, and sources, suitable for standalone distribution. Outstanding issues: - Some more testing needed, especially with combos of platform / JNA missing vs present / Waffle-JNA missing vs present / GSSAPI vs SSPI requested by server . (It's a pity that Travis-CI doesn't speak Windows). - Can't test docs compilation yet, so can't test Maven snapshot upload or fix the "dist" target to bundle the docs - "dist" target creates source fileset separately from how maven source jar target does. I should unify them before committing. ... but overall, it seems to work really well, and it's in live use at a customer site now. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc