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 1hLIP9-0006ME-EC for pgsql-general@arkaria.postgresql.org; Tue, 30 Apr 2019 02:21:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hLIP8-0004YH-2C for pgsql-general@arkaria.postgresql.org; Tue, 30 Apr 2019 02:21:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLIP7-0004YA-P9 for pgsql-general@lists.postgresql.org; Tue, 30 Apr 2019 02:21:57 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hLIP5-0000LH-74 for pgsql-general@lists.postgresql.org; Tue, 30 Apr 2019 02:21:57 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 227415F79F; Mon, 29 Apr 2019 22:21:54 -0400 (EDT) Date: Mon, 29 Apr 2019 22:21:54 -0400 From: Stephen Frost To: Jean-Philippe Chenel Cc: "pgsql-general@lists.postgresql.org" Subject: Re: 9.6.9 Default configuration for a default installation but different with-krb-srvnam Message-ID: <20190430022153.GP6197@tamriel.snowman.net> References: <20190429142230.GZ6197@tamriel.snowman.net> <20190429173510.GD6197@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OVQS2cWub5sSZzQl" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --OVQS2cWub5sSZzQl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Jean-Philippe Chenel (jp.chenel@LIVE.CA) wrote: > You're absolutely right, the mapping work very well. Great, glad to hear it. > I've created 2 "service user" on Active Directory (postgres and postgres_= dev), and generated the keytab like this: >=20 > ktpass -out postgres_pg1.keytab -princ postgres/PGDOMT1.ad.com@AD.COM -ma= pUser AD\postgres -pass 'UserPass1' -mapOp add -crypto ALL -ptype KRB5_NT_P= RINCIPAL >=20 > ktpass -out postgres_pg2.keytab -princ postgres/PGDOMT2.ad.com@AD.COM -ma= pUser AD\postgres_dev -pass 'UserPass2' -mapOp add -crypto ALL -ptype KRB5_= NT_PRINCIPAL I would strongly suggest you use passwords that are randomly generated and not sent to a public, archived, mailing list. If someone knows the password, they can impersonate the server. Thanks! Stephen --OVQS2cWub5sSZzQl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJcx7FBAAoJEO1sijiDR2RVLCQP/ixaBeT16tVZDXA2SvpmTfgR ATvxkOCpHtfw6QKcCvISpNVwV8MTJplRCp10cqxoFr569KomapWKrYPEls6r+kjl CWBZGt2wBAN/MRF9cHL9/jTacEamlFtee8XSVvD3BuUVaM3d5r9RbmcJgwe9soUi bjmmVNnq7S0vl5KP+qeXE9U/Q1+Z3W1p4vP2NeA25eiHunMLne+pqK+hXUcr0f5Q Kp3lsfs1Z5qi+MlqVcZM9y8KqZ9VQjv66pKjTPSYmglbmFf+n1JKMjMpLr+pZEFz rm/YGa2/Hp3fa/YMIKHlK/6lf8AEgAOCAAWEobPP3oF1W8uUKfHeqGWsxVmC1Nti KAA9s8aJGua/ZBDscXVHwX/xHsv2lsYFflRKmkg9G91yAHzKvbTHvK048b8t4r1B dJI99ys4udqGTzW+5YULMOwo/QNoWpyjbW3hMCDWTb7Dnx/oDact1ByrLFo5zLaQ nmXGKpezfaVI5/zpqjwpih2VQftUDC6sz9a6sINYVAGAk0YrbGAqMwb6SQcbZSwr BHcrLeh79gOImYPtrCBJyBqNbccLntY3FIFA3k0ING9ihYzYBOTK6ICRs07h9Ja/ cD6iYihMPCGaL2G6+c4yYjpXy9euN2ipNy/nar5vHGdzmhA+4q3VkqxFJrFKUJbX 2+Y5bmXap3AnQYBcRr32 =GGZZ -----END PGP SIGNATURE----- --OVQS2cWub5sSZzQl--