Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLbQ6-0000kB-Cb for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Oct 2019 23:12:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iLbQ4-0001Va-L8 for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Oct 2019 23:12:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLbQ4-0001Ue-90 for pgsql-bugs@lists.postgresql.org; Fri, 18 Oct 2019 23:12:28 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1iLbQ1-0000MU-0U for pgsql-bugs@lists.postgresql.org; Fri, 18 Oct 2019 23:12:26 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 09A855F7A2; Fri, 18 Oct 2019 19:12:23 -0400 (EDT) Date: Fri, 18 Oct 2019 19:12:23 -0400 From: Stephen Frost To: k.yudhveer@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16066: Ldap Authentication failure on PostgreSQL 10.10 Message-ID: <20191018231223.GE6962@tamriel.snowman.net> References: <16066-446841bca15fabc0@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LDk25RFGVJMf1+TX" Content-Disposition: inline In-Reply-To: <16066-446841bca15fabc0@postgresql.org> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --LDk25RFGVJMf1+TX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * PG Bug reporting form (noreply@postgresql.org) wrote: > host Tom Tom 10.10.117.43/32 ldap=20 > ldapserver=3D10.10.117.43 ldapbasedn=3D"ou=3DPeople,dc=3Dinternal,dc=3Dg2= llc" > ldapbinddn=3D"cn=3Dsvc_ldap,ou=3DPeople,dc=3Dinternal,dc=3Dg2llc" > ldapbindpasswd=3D"Test123#" ldapport=3D389 ldapsearchattribute=3D"uid" >=20 > When I am trying to connect to postgresql on remote server, I am getting = the > message as no entry for "Tom" in pg_hba.conf file where the postgresql is > running on the remote server. >=20 > Already created the user "Tom" in postgresql and also created the user "T= om" > in ldap and also created one more ldap user account "i.e., svc_ldap" in > ldap. >=20 > Not Sure..what else I need to configure to make the Postgresql user to > authenticate with ldap This isn't a bug, and we've already pointed out that you need to make sure that the IP in the pg_hba.conf is the one the client is connecting =66rom. It's not the LDAP server. Also, as mentioned, you'd really be better off using GSSAPI authentication with Active Directory, using LDAP isn't nearly as secure, nor is it a good practice. Thanks, Stephen --LDk25RFGVJMf1+TX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdqkbXAAoJEO1sijiDR2RVdM0P+wbvz7TL+L5AJ79TTnMsCGh+ hXv3oNFy0KqmjQJyLk0D+MUlt2QHjjYV2IF1OCz75Ikf+NTlXf8NnAtN66gdc4Z9 5PqhLQBZx3q8dsu0MOMNBhJqe5vg+FFZhFUXOuCG2IytUBYbkF5bFRmjAiDKLtXB oDvokEB+xi2WAUTEwvhqcCJMhqXMnxZX98rKpi7KfIuJsOLlxF3Y/AUDC93kDy4C laltJwSGdirwTVvSECO7lRi92FGNlKgBgDo4MgPNPd95OJsozZi1/HkCSWcTBAO7 crhzVZYNm43OLtHgvTjNRDTUPpY6VpxpBfX5ig1n/SnVqkePevXr5Z58uIF5SfPL +EIjxXFDTCFqYJGJSyerU6Ss4mrLqM34XwYvsAKgyJRJnnvAPRaiX+ZZMtWv41Dp LJa5X9FH2l+QsXIfDKcxkTOtbzKgscmKmyAE7iJUPlQhDKUzInt0A2PmrnOLKLr0 DIAIZ7g5l1LMaHA8ysc/kvLOXt+806oo0ItDHerGhOKqQP4qnf24Mu9UKa/PWM2I EeJduePm71NgRLQKm/wWgQ4zfRGI/oCoVeNGWUbPatcgi/JLK/RC7FdP0pkNKO3S rQhPwbWKDPwWxS5jaH7zapBw0fTJeDpWfQRIdke9+OF/PcWIVq0pOwus49UCXwoT IzrssuHMbomK2JnOc1w4 =yzr5 -----END PGP SIGNATURE----- --LDk25RFGVJMf1+TX--