<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pg_ident.conf &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/pg_ident-conf/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Thu, 08 Dec 2016 18:19:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>PostgreSQL: pg_ident.conf to map Operating System Username and Database Username</title>
		<link>https://www.dbrnd.com/2016/12/postgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password/</link>
					<comments>https://www.dbrnd.com/2016/12/postgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 08 Dec 2016 18:19:29 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[operating system]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[pg_hba.conf]]></category>
		<category><![CDATA[pg_ident.conf]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[user]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4013</guid>

					<description><![CDATA[If you do not know about the role of pg_hba.conf file, visit the below link. PostgreSQL: How to Allow Remote Connection to Connect Database PostgreSQL also has a one more file related user access permission and that is pg_ident.conf. PostgreSQL provides Ident-based authentication and It works by obtaining the client&#8217;s operating system user name and [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&amp;linkname=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&amp;linkname=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&amp;linkname=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&amp;linkname=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&amp;linkname=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&amp;linkname=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&#038;title=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" data-a2a-url="https://www.dbrnd.com/2016/12/postgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password/" data-a2a-title="PostgreSQL: pg_ident.conf to map Operating System Username and Database Username"></a></p><p>If you do not know about the role of pg_hba.conf file, visit the below link.</p>
<blockquote class="wp-embedded-content" data-secret="JrH3IqJXlV"><p><a href="https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/">PostgreSQL: How to Allow Remote Connection to Connect Database</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/embed/#?secret=JrH3IqJXlV" data-secret="JrH3IqJXlV" width="600" height="338" title="&#8220;PostgreSQL: How to Allow Remote Connection to Connect Database&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<blockquote><p>PostgreSQL also has a one more file related user access permission and that is pg_ident.conf.<br />
PostgreSQL provides Ident-based authentication and It works by obtaining the client&#8217;s operating system user name and using it as the allowed database user name with an optional user name mapping.</p></blockquote>
<blockquote><p>When we are using an external authentication system, system username might not be the same as database username. </p></blockquote>
<blockquote><p>To allow external authentication, We should map the system username with database username and we can also set a map name to hide the system username and database username related detail.</p></blockquote>
<p>For example, </p>
<p><strong>Go to the PostgreSQL data directory and Open pg_ident.conf file.</strong><br />
<strong>You can find below lines:</strong></p>
<pre class="crayon-plain-tag"># Put your actual configuration here
# ----------------------------------
# MAPNAME       SYSTEM-USERNAME         PG-USERNAME</pre> </p>
<p><strong>You can add value to map system username and database username:</strong></p>
<pre class="crayon-plain-tag"># Put your actual configuration here
# ----------------------------------
# MAPNAME       SYSTEM-USERNAME         PG-USERNAME
User123         LinuxUser               PGUser</pre> </p>
<blockquote><p>Once you map your system user and database user in pg_ident.conf file, you can use map name in pg_hba.conf file to allow external authentication.</p></blockquote>
<p><strong>Go to your PostgreSQL data directory and open a pg_hba.conf file.</strong></p>
<p>You can add the map name of system user and database user in METHOD column.<br />
For Example, </p>
<pre class="crayon-plain-tag"># TYPE  DATABASE        USER            ADDRESS                 METHOD
host    all             all             120.172.0.0/16          ident map=User123</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/12/postgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
