{"id":1723,"date":"2013-06-22T11:48:07","date_gmt":"2013-06-22T11:48:07","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=1723"},"modified":"2015-03-26T09:34:21","modified_gmt":"2015-03-26T09:34:21","slug":"postgres-ident-authentication-failed-on-windows","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/","title":{"rendered":"postgres ident authentication failed on windows"},"content":{"rendered":"<p>To fix this error open PostgreSQL client authentication configuration file :&#8230;\\PostgreSQL\\data\\pg_hba.conf<\/p>\n<p>This file controls:<\/p>\n<ul>\n<li>Which hosts are allowed to connect<\/li>\n<li>How clients are authenticated<\/li>\n<li>Which PostgreSQL user names they can use<\/li>\n<li>Which databases they can access<\/li>\n<\/ul>\n<p><span style=\"font-size: medium\"><span style=\"line-height: 24px\">By default Postgresql uses IDENT-based authentication. All you have to do is allow username and password based authentication for your network or webserver. IDENT will never allow you to login via -U and -W options. Append following to allow login via localhost only:<\/span><\/span><\/p>\n<pre>local\tall\tall\t        trust\r\nhost\tall\t127.0.0.1\/32\ttrust<\/pre>\n<p>Save and close the file. Restart Postgresql server:<\/p>\n<p>Enjoy&#8230;<\/p>\n<p>[stextbox id=&#8221;warning&#8221;]Your opinions, comments and suggestions are important to keep the page updated and interesting.\u00a0[\/stextbox]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To fix this error open PostgreSQL client authentication configuration file :&#8230;\\PostgreSQL\\data\\pg_hba.conf This file controls: Which hosts are allowed to connect How clients are authenticated Which PostgreSQL user names they can use Which databases they can access By default Postgresql uses IDENT-based authentication. All you have to do is allow username and password based authentication for <a href=\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":10,"featured_media":22124,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1723","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>postgres ident authentication failed on windows - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"postgres ident authentication failed on windows - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"To fix this error open PostgreSQL client authentication configuration file :&#8230;PostgreSQLdatapg_hba.conf This file controls: Which hosts are allowed to connect How clients are authenticated Which PostgreSQL user names they can use Which databases they can access By default Postgresql uses IDENT-based authentication. All you have to do is allow username and password based authentication for [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-06-22T11:48:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-03-26T09:34:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mohit Chandra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mohit Chandra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/\"},\"author\":{\"name\":\"Mohit Chandra\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/82824e8c1a101ec721fda4c7a418cc2a\"},\"headline\":\"postgres ident authentication failed on windows\",\"datePublished\":\"2013-06-22T11:48:07+00:00\",\"dateModified\":\"2015-03-26T09:34:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/\"},\"wordCount\":116,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner2.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/\",\"url\":\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/\",\"name\":\"postgres ident authentication failed on windows - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner2.png\",\"datePublished\":\"2013-06-22T11:48:07+00:00\",\"dateModified\":\"2015-03-26T09:34:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner2.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner2.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"postgres ident authentication failed on windows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/82824e8c1a101ec721fda4c7a418cc2a\",\"name\":\"Mohit Chandra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3aea81ed8ce4e8e1aa6cde51d2aa5813f3beacc645152f757e47e367d65b85aa?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3aea81ed8ce4e8e1aa6cde51d2aa5813f3beacc645152f757e47e367d65b85aa?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Mohit Chandra\"},\"description\":\"Mohit Chandra is an expert Odoo developer and the Owl framework, specializing in multi-platform integration services. He excels in developing dynamic, scalable solutions that seamlessly integrate diverse systems, leveraging his deep knowledge to enhance business efficiency and drive technological innovation.\",\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/mohit-chandra\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"postgres ident authentication failed on windows - Webkul Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/","og_locale":"en_US","og_type":"article","og_title":"postgres ident authentication failed on windows - Webkul Blog","og_description":"To fix this error open PostgreSQL client authentication configuration file :&#8230;PostgreSQLdatapg_hba.conf This file controls: Which hosts are allowed to connect How clients are authenticated Which PostgreSQL user names they can use Which databases they can access By default Postgresql uses IDENT-based authentication. All you have to do is allow username and password based authentication for [...]","og_url":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2013-06-22T11:48:07+00:00","article_modified_time":"2015-03-26T09:34:21+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner2.png","type":"image\/png"}],"author":"Mohit Chandra","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Mohit Chandra","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/"},"author":{"name":"Mohit Chandra","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/82824e8c1a101ec721fda4c7a418cc2a"},"headline":"postgres ident authentication failed on windows","datePublished":"2013-06-22T11:48:07+00:00","dateModified":"2015-03-26T09:34:21+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/"},"wordCount":116,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner2.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/","url":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/","name":"postgres ident authentication failed on windows - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner2.png","datePublished":"2013-06-22T11:48:07+00:00","dateModified":"2015-03-26T09:34:21+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner2.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner2.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/postgres-ident-authentication-failed-on-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"postgres ident authentication failed on windows"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/82824e8c1a101ec721fda4c7a418cc2a","name":"Mohit Chandra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3aea81ed8ce4e8e1aa6cde51d2aa5813f3beacc645152f757e47e367d65b85aa?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3aea81ed8ce4e8e1aa6cde51d2aa5813f3beacc645152f757e47e367d65b85aa?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Mohit Chandra"},"description":"Mohit Chandra is an expert Odoo developer and the Owl framework, specializing in multi-platform integration services. He excels in developing dynamic, scalable solutions that seamlessly integrate diverse systems, leveraging his deep knowledge to enhance business efficiency and drive technological innovation.","sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/mohit-chandra\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=1723"}],"version-history":[{"count":5,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1723\/revisions"}],"predecessor-version":[{"id":22125,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1723\/revisions\/22125"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/22124"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=1723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=1723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=1723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}