Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQVxk-00018y-4o for pgsql-novice@arkaria.postgresql.org; Sun, 28 Mar 2021 14:00:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lQVxi-0004wM-W8 for pgsql-novice@arkaria.postgresql.org; Sun, 28 Mar 2021 14:00:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQVxi-0004wF-PE for pgsql-novice@lists.postgresql.org; Sun, 28 Mar 2021 14:00:18 +0000 Received: from mout.gmx.net ([212.227.15.18]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQVxb-0000DY-P2 for pgsql-novice@lists.postgresql.org; Sun, 28 Mar 2021 14:00:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616940007; bh=itp9JURa4PXhcfTCfOKvVfcTCKXzwy7r3OwsO2KMeAY=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References; b=TVhdaVVNJVRpnDwCWIh31QnFmmq1vYP6cd0kSBLisnpVpDKn5bjyKlIbEljkZXwsx B3FY7bHlp2XX6VBBy8kz4khsEn879KqBbUn7TVKQwcMii2b9hCMPqCpQH3H90IoX/y RfSm483ELtOEVKr3p5DjDw7O7+SxGblLxmrN9ays= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from mail.defcon1.lan ([93.15.31.113]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1M3DO3-1lU5GM1kcf-003b48; Sun, 28 Mar 2021 16:00:07 +0200 Date: Sun, 28 Mar 2021 16:00:04 +0200 From: Bzzzz To: pgsql-novice@lists.postgresql.org Cc: Simon Connah Subject: Re: Application trying to use wrong user when logging into the database Message-ID: <20210328160004.58d5426d@msi.defcon1.lan> In-Reply-To: References: Organization: Anyone, anywhere BUT in banana demokratik republik of france and UERSS. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Kky8krM/Dcghnsc13cHMZgovjdmP4m3Eyx9F06cuqY32Xr/kPtQ iXES2XWbrdJb3JYmj+pptPTQS4gyKajscAVQX8S+SbjEapP72AblPyyJXpcVjLRiJ+6U4Xz 3Xp+i9/OzAZQdL5+jkv/U+RpknTGuYkEaHmHDbh2pueJidsQLmVu+679euxIuDnxU9qolXO 1LiR7mWUGGyagoog8Wd+g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:BmuUap48AWI=:gxp4raO0WSE9orhgcMp0W1 vPqLOU/ZUzDGUlxrqbeDXat0EEji2H3XYYh6urTieWZ2BMoukfYjsUA4UQVu0lfP2SmNbb/ds mpfUbACPLMSlMqXbKqk0tUOD/otA8vQkH73FGRs6xG8tSQsEaFaYNGzCsXQyKNfADf19UOoqS P0N4jTP3M19/A+ds7DkHRILxglzgtDGnPv1ZPn0UAOvL6tJzwqSET+6GRp+UEjqWpFvGSNFCF 6iLHXcszZhQxA0+S6qiR3lSAVXUSgoSNiPJw5LsAko2G9+Rbi6xK5d+r/iMExS9chrxKt5FHD AOX8GP1FIf2lGAzUwAmfqw754NEfbuMElicpeUY7Od1ja+LXpM495ZO1ozfw/OmeXt9BnAxs7 g2a+IpA/95okkWHdBY4tKgNlFwtqUnd3A1v2CoQ5w21HVrDra0H/mkkQA5DExe/rvPFANGfx/ ZvUh8RLBYStWCvyk1n1UP4y5O382OkcCu7ZSg8yG5TUO1+JprhOFW26KSfCE2PPYKkSruFraZ J56JYbmgltwyz3ia+HZhY1t2m+eFVLHsjLpTgOibEpB+x/ysTlrIERMYX6T/XWSD8M1iRG4hn 1F5EGsMBJ0zjxSdIe6OrroHhQkPYODKdc+lHTYRRksFkiBSGhvUerzMWQZ3cx9WASJDKQ4vbh /07vghigTHV7m2e7hKPjrmVGaKd9SlTgt/L4qQie9waeTxpypLIYcAcyv018/SkRPTp78SPeK jJoEcuRB+mWFYbm3UErkb6WSUaj1b6RK5f3+71R9Iun1U7ASobqdk130+/PCNqufgsk234U09 gOYv6OLtDVNc6gpElxRswaqqjvuaYt02haZ1h1HkuyfubtqJG+iOMeYZdFQsZUkpqgKq5Hs63 lEx5Vhinmn8abiG5cFd7A9rrqEx1H23nGG9h03s00tbVg4Y+SuxG6Dt9v4LkubJ/N3q529JAl qg/JJiwm2nUSO6XMC2HDJQfF4NA4z019xgI2ZsUw4sIpoKJtT0FKuUZX5lxhATpKZ6XTz4WHM sO3QhD9f9dp3RUL1/a9cUDoIl5qMSfBoQtZ+ABskKLSjyZMEgYKaXYOPymfkGsTA12Kl3toYV uP09zQgDN8QxNN21ORK5X6PgUiHk7O1sNF/XpyoPLLzca8fp/XBSSABgSm/ykCRG7FbkuMp8X vibK2hnBaS90KEMYXDIozVqQwNim2CE0zD2dOAl7JX34n+Q80J78szpaT/T6qZNt7tWt4= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, 28 Mar 2021 13:44:59 +0000 Simon Connah wrote: Hi, > But instead of using my > applications role which I created in PostgreSQL it is trying to use my > Linux user name "simon" and is failing authentication because of it. > I'm just confused at the moment. At no point in time have I created a > role called "simon" and I have never tried to connect to any of my > databases using the role name "simon", so why is it trying to > authenticate as "simon"? Read this and check you're not in this case : https://www.dbrnd.com/2016/12/postgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password/ Jean-Yves