Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X8hVf-0005KL-7l for pgsql-novice@arkaria.postgresql.org; Sun, 20 Jul 2014 03:09:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X8hVd-0005f7-Fb for pgsql-novice@arkaria.postgresql.org; Sun, 20 Jul 2014 03:09:57 +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 1X8hVb-0005ej-9P for pgsql-novice@postgresql.org; Sun, 20 Jul 2014 03:09:55 +0000 Received: from nm6-vm6.access.bullet.mail.bf1.yahoo.com ([216.109.114.149]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1X8hVQ-0008Ax-1u for pgsql-novice@postgresql.org; Sun, 20 Jul 2014 03:09:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1405825780; bh=21JJBXFft2KTPRhHBuEMNgjzcXRciEvHXJbnya1ryeI=; h=Received:Received:Received:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type; b=UE5iEbStS+S0qxZHnF8jUnE2bb97NJxlIlVWR2yZz6Inx86EaslybXd2QLUUU4nbyTco7yLgjgaTK9etyG861zQXkJbZW/qDvcYd90vAmLSP2d5kXRap2oPYIeCXOCWBP6U94DCULKH1tePWcTCfnkzJaQqdTcy0tLNHnzDaU+1ZDWa3YmZULm/s3G5YnBH+Aw5WOY+yIhA7+ynKpRsS8c2cV/4oqgCUGuM9S9C537veq/RsukmTFKo4LGUYLsW3kX5Kq9WG9NGMNOEf4m2a3RHyxEPNzzNYhT5JaSrIh1HEljKBlWfTe8eWVgkQnO+WhpAitBLRwJn0zsxWrHZMBA== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=GQHDa36a8C+kmbzhasug56kB8q1Xxa5NCDc+1fIax0A0OMSHQC0gCkmGCyDTwA+N7qVTCVnAQ42PkoBLEjoeyUTt9mluC9vMLODgvLOUukGj8HE8KDnJwCNEXuCx+lkK4fy1oX7l7mAL1TfugS021ipaMTPRVqh5Wz/0UPK0Vf/VXyp8tcm1QU6Pzpvv6DhLZyvqbdog4xllPuJ8k0rOc6+dAuhUXxYfnxiOLQD6cj9t6dl09V/rNEd6hhRMhJ6/W5cl8sTe9s7BfeCMp/hIOuDy+WTEV0uCwyfYpwW6rKJqJVVNjtvN82AbaYpZNWK+qkujndXf36F/BJVImGpHYA==; Received: from [66.196.81.162] by nm6.access.bullet.mail.bf1.yahoo.com with NNFMP; 20 Jul 2014 03:09:40 -0000 Received: from [98.139.244.53] by tm8.access.bullet.mail.bf1.yahoo.com with NNFMP; 20 Jul 2014 03:09:40 -0000 Received: from [127.0.0.1] by smtp115.sbc.mail.bf1.yahoo.com with NNFMP; 20 Jul 2014 03:09:40 -0000 X-Yahoo-Newman-Id: 310007.24034.bm@smtp115.sbc.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: jXAnvMAVM1mKajjSCuTJDPiEZ1zGxzD8RckvXs.wsbP4Xuh FZ_L7qVwn851NPe4Qs0d0MMqjLPmIboQH_h.Jod1TL3fa_RjEZWzSxn.XScR uLRaA1GkfJu9F.1rPS2CaAMt5NzLC7ss36U6EIjRzMDQ6.15AJXMdaG5Prt3 9WEFBLmV7dEA.f7cJjBjmy9rzqWEoqlnYvFxIIj40pJMVOHjdcFpVNjulD2x yBjEuhuzWbiAZAJenXmagc3N6JS1fmIOshQNo7pWNsIhz9nPk7XxNBK5wcX8 UYCIUyQw8dwamn6nkreraUB4m6YAl4LQo8db02n4D6_2yh.QUtzpMPPDKCGa Edco6JnWhUGGYcaqhAxHxJvVDobumoSMbedDCJVK.BvDA8vnTZoVAPKCuV_l 40WxOOqisiZ.6UkLE1oOyV8VMDdUMh7b6j8jD7ovWaO2qRhCNP.JgcrkeW8b 0HED077I3HpAtoc6qB43mFDgfbjBwK4fz1ORjEXMRvxeaYAW84cDdd8h4bNS .1tU2NZ.GYku7PSZ_I3zOzxyiRG4UwL7v.J8qy4xwF9Q4WXX4chEa7_eJ1Ok Jmbg4pViULDwyRfngtIvr5sU3Gd2y0Xe4WSELqOOqfFUX_SENqBI_.fAGmGY MM.X9EDuYk6HV6DcgaurONZlH55NMJE02EBYL.Dm9yEwbm6deRMoMPg3uWNe D9YadJRLi5mFLW_eemVUodY_kNGKEecj1ltD6Kdzh6QsYVdfm9ZsVuedr1BQ tmhk7v9ALBjktoRkS5A-- X-Yahoo-SMTP: GMTumJaswBChrtRTn8gqZTOmsBrkG0IQOjLPC2F8grM- Message-ID: <53CB32E4.6060700@verizon.net> Date: Sat, 19 Jul 2014 23:09:24 -0400 From: Gerald Cheves User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: "pgsql-novice@postgresql.org" Subject: Re: JBDC LDAP support References: <77E6F1BFB524D44E97EAD7836AC9ECDB43759F6A@PWN60112.corp.ds.fedex.com> In-Reply-To: <77E6F1BFB524D44E97EAD7836AC9ECDB43759F6A@PWN60112.corp.ds.fedex.com> Content-Type: multipart/alternative; boundary="------------020409080107060108060701" X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-novice Precedence: bulk Sender: pgsql-novice-owner@postgresql.org This is a multi-part message in MIME format. --------------020409080107060108060701 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi John, There is LDAP authentication in PostgreSQL. Check out the PostgreSQL Documentation, section 19.3.8 http://www.postgresql.org/docs/9.3/static/auth-methods.html and https://wiki.postgresql.org/wiki/LDAP_Authentication_against_AD - Gerald On 7/18/2014 3:53 PM, John Neal wrote: > > Does the postgres JDBC driver include LDAP support? I was able to get > psql to connect via LDAP using pg_service.conf (so I can confirm that > the LDAP entry is correct), but a majority of our applications use > jdbc to connect. > > For example, normally our java apps would connect to Oracle with a url > like this: > > jdbc:oracle:thin:@ldap://oid.myserver.com/ABC_APP_L3,cn=OracleContext > > However, I'm not able to find a way to accomplish similar with > postgres. I've confirmed that the driver > (postgresql-9.3-1102.jdbc4.jar) works when specifying the hostname, > dbname, and port. When using LDAP, this is what I would expect, but it > doesn't work. > > jdbc:postgresql:@ldap:// oid.myserver.com/ ABC_APP_L3,cn=PostgresContext > > I'd appreciate any advice. > > John Neal > -- siamo arrivati sani e salvi --------------020409080107060108060701 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Hi John,

There is LDAP authentication in PostgreSQL.

Check out the PostgreSQL Documentation, section 19.3.8 http://www.postgresql.org/docs/9.3/static/auth-methods.html
and https://wiki.postgresql.org/wiki/LDAP_Authentication_against_AD


- Gerald
On 7/18/2014 3:53 PM, John Neal wrote:

Does the postgres JDBC driver include LDAP support? I was able to get psql to connect via LDAP using pg_service.conf (so I can confirm that the LDAP entry is correct), but a majority of our applications use jdbc to connect.

 

For example, normally our java apps would connect to Oracle with a url like this:

jdbc:oracle:thin:@ldap://oid.myserver.com/ABC_APP_L3,cn=OracleContext

 

However, I’m not able to find a way to accomplish similar with postgres. I’ve confirmed that the driver (postgresql-9.3-1102.jdbc4.jar) works when specifying the hostname, dbname, and port. When using LDAP, this is what I would expect, but it doesn’t work.

jdbc:postgresql:@ldap:// oid.myserver.com/ ABC_APP_L3,cn=PostgresContext

 

I’d appreciate any advice.

 

 

John Neal

 



-- 
siamo arrivati sani e salvi
--------------020409080107060108060701--