<?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>TIBCO Admin &#187; informix</title>
	<atom:link href="http://tibcoadmin.com/tag/informix/feed/" rel="self" type="application/rss+xml" />
	<link>http://tibcoadmin.com</link>
	<description>thoughts and actions</description>
	<lastBuildDate>Fri, 02 Mar 2012 06:41:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Enabling Informix SSO authentication</title>
		<link>http://tibcoadmin.com/ibm/informix/enabling-informix-sso-authentication/</link>
		<comments>http://tibcoadmin.com/ibm/informix/enabling-informix-sso-authentication/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 12:37:05 +0000</pubDate>
		<dc:creator>Serge</dc:creator>
				<category><![CDATA[informix]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://tibcoadmin.com/?p=696</guid>
		<description><![CDATA[The idea was to let users, who have accounts in the MS AD, log on to Informix database running on Solaris without requiring to enter credentials again as they are already authenticated in the domain on their Windows workstations. So, we will configure Informix for Kerberos and Single Sign-On (SSO) authentication for Windows clients. This [...]]]></description>
			<content:encoded><![CDATA[<div class="plus-one-wrap"><g:plusone size="small" href="http://tibcoadmin.com/ibm/informix/enabling-informix-sso-authentication/"></g:plusone></div><p>The idea was to let users, who have accounts in the MS AD, log on to Informix database running on Solaris without requiring to enter credentials again as they are already authenticated in the domain on their Windows workstations. So, we will configure Informix for Kerberos and Single Sign-On (SSO) authentication for Windows clients. This configuration can be called the logical conclusion of a previous <a href="http://tibcoadmin.com/ibm/informix/enabling-informix-pam-authentication/">configuration with PAM</a>.</p>
<p>Informix box must be preconfigured and joined AD domain like in <a href="http://tibcoadmin.com/sun/solaris/how-to-add-solaris-10-server-into-ms-active-directory-domain/">this my example</a> for Solaris and MS AD. Installing the latest patches is strongly recommended as some related bugs were fixed recently in Solaris and Informix.</p>
<ol>
<li>On any Domain Controller:
<ul>
<li>create a service account in AD, one per server/alias</li>
<li>run <code><strong>setspn</strong> -A &lt;sso_alias&gt;/&lt;informix_server&gt;.domain.com@DOMAIN.COM &lt;informix_server&gt;</code></li>
<li>run <code><strong>ktpass</strong> -princ &lt;sso_alias&gt;/&lt;informix_server&gt;.domain.com@DOMAIN.COM -mapuser &lt;serv_acc&gt;@DOMAIN.COM -crypto RC4-HMAC-NT -ptype KRB5_NT_PRINCIPAL -mapop set -pass &lt;serv_acc_password&gt; -out my.keytab</code></li>
<li>upload generated keytab file to Informix server</li>
</ul>
</li>
<li>On the Informix box:
<ul>
<li>run <strong>ktutil</strong> and insert generated key to existing keys file:<br />
<code>ktutil:  rkt /upload/my.keytab<br />
ktutil:  wkt /etc/krb5/krb5.keytab<br />
ktutil:  quit</code></li>
<li>run <code><strong>klist</strong> -e -k /etc/krb5/krb5.keytab</code> to check keys file</li>
<li>create <code>&lt;informix_home&gt;ids/etc/concsm.cfg</code> file with one row like this:<br />
<code>GSSCSM("/app/informix/ids/lib/csm/libixgss.so", "", "c=1,i=1")</code></li>
<li>add sso alias to Informix <strong>onconfig</strong> file</li>
<li>add sso alias to <strong>sqlhosts</strong> file:<br />
<code>ssoalias         ontlitcp        hostname      1526   s=7,csm=(GSSCSM)</code></li>
</ul>
</li>
<li>On all Windows workstations: <a href="http://tibcoadmin.com/wp-content/uploads/2010/02/informix-sso-setnet32.png"><img class="alignright size-medium wp-image-722" title="informix-sso-setnet32" src="http://tibcoadmin.com/wp-content/uploads/2010/02/informix-sso-setnet32-300x238.png" alt="" width="300" height="238" /></a>
<ul>
<li>latest version of IBM Informix-Connect must be installed</li>
<li>create <strong>concsm.cfg</strong> file in the <code>C:\Program Files\IBM\Informix\Connect\etc</code> folder with one row like this:<br />
<code>GSSCSM("client=C:\Program Files\IBM\Informix\Connect\lib\client\csm\igsss11a.dll", "", "c=1,i=1")</code></li>
<li>run <strong>setnet32</strong> and describe server like on my screenshot, don&#8217;t forget specify options: <code>s=7,csm=(GSSCSM)</code></li>
<li>test using <strong>ilogin</strong> or define <strong>ODBC</strong> source; leave username and password fields empty</li>
</ul>
</li>
</ol>
<p>To check AD accounts from Unix or debug Kerberos and SSO use the following tools:</p>
<ul>
<li>klist, ldapsearch, ldaplist, getent</li>
<li><a href="http://hub.opensolaris.org/bin/view/Project+kerberos/Debuggin">krb-diag</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tibcoadmin.com/ibm/informix/enabling-informix-sso-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling Informix PAM authentication</title>
		<link>http://tibcoadmin.com/ibm/informix/enabling-informix-pam-authentication/</link>
		<comments>http://tibcoadmin.com/ibm/informix/enabling-informix-pam-authentication/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 13:48:52 +0000</pubDate>
		<dc:creator>Serge</dc:creator>
				<category><![CDATA[informix]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://tibcoadmin.com/?p=672</guid>
		<description><![CDATA[Some text from Wikipedia for introduction: pluggable authentication modules, or PAM, is a mechanism to integrate multiple low-level authentication schemes into a high-level application programming interface (API). It allows programs that rely on authentication to be written independently of the underlying authentication scheme. In my case the idea was to let users, who have accounts [...]]]></description>
			<content:encoded><![CDATA[<div class="plus-one-wrap"><g:plusone size="small" href="http://tibcoadmin.com/ibm/informix/enabling-informix-pam-authentication/"></g:plusone></div><p>Some text from <a href="http://en.wikipedia.org/wiki/Pluggable_Authentication_Modules">Wikipedia</a> for introduction:</p>
<blockquote><p>pluggable authentication modules, or PAM, is a mechanism to integrate multiple low-level authentication schemes into a high-level application programming interface (API). It allows programs that rely on authentication to be written independently of the underlying authentication scheme.
</p></blockquote>
<p>In my case the idea was to let users, who have accounts in the MS AD, log on to Informix Dynamic Server using their AD username and password.</p>
<p>Your OS must be ready to use PAM and <a href="http://en.wikipedia.org/wiki/Kerberos_(protocol)">Kerberos</a>, configured like in <a href="http://tibcoadmin.com/sun/solaris/how-to-add-solaris-10-server-into-ms-active-directory-domain/">this example</a> for Solaris and MS AD.</p>
<p>So, lets start:</p>
<ol>
<li>Better to limit number of enctypes for Kerberos, especially if <acronym title="key distribution center">KDC</acronym> is Windows 2008 R2.<br />
To do that, add the flowing rows in the <code>/etc/krb5/krb5.conf</code>:<br />
<code>[libdefaults]<br />
default_tkt_enctypes = des-cbc-crc des-cbc-md5 arcfour-hmac-md5<br />
default_tgs_enctypes = des-cbc-crc des-cbc-md5 arcfour-hmac-md5<br />
default_etypes = des-cbc-crc des-cbc-md5 arcfour-hmac-md5<br />
default_etypes_des = des-cbc-crc</code></li>
<li>To define Informix for PAM, add its name to <code>/etc/pam.conf</code>, I will name it <em>ids_pam_service</em>:<br />
<code>ids_pam_service   auth sufficient         pam_krb5.so.1<br />
ids_pam_service   auth sufficient           pam_unix_auth.so.1</code><br />
First line for Kerberos authentication, second to allow local users (defined in passwd) to login through pam-enabled Informix alias.</li>
<li>Configure one or many Informix aliases to enable PAM. Do that in <code>sqlhosts</code> file:<br />
<code>&lt;alias_name&gt;           ontlitcp        &lt;host_name&gt;      &lt;service_name&gt;    s=4,pam_serv=(ids_pam_service),pamauth=(password)</code><br />
like in my example:<br />
<code>onpam           ontlitcp        serv-inf01      1526    s=4,pam_serv=(ids_pam_service),pamauth=(password)</code></li>
</ol>
<p>After Informix restart, PAM authentication will be enabled. Clients will be prompted to enter their local or AD credentials to connect.</p>
<p>If it doesn&#8217;t work, you can debug PAM, just touch <code>/etc/pam_debug</code> file and put <strong>auth.debug</strong> string in the <code>/etc/syslog.conf</code> file:<br />
<code>auth.debug          /var/adm/dmessages</code><br />
Keep in mind that spaces not allowed in syslog.conf, only tabs, and syslog daemon restart is required.</p>
<blockquote><p>Main disadvantage of PAM is that due to limits of the PAM API, it is not possible for a PAM module to request a Kerberos service ticket from a Kerberos Key Distribution Center (KDC), allowing the user to utilize the application without re-authenticating. pam_krb5 only fetches ticket granting tickets, which involves prompting the user for credentials and are only used for initial login in an SSO environment. To fetch a service ticket for a particular application, and not prompt the user to enter credentials again, that application must be specifically coded to support Kerberos, as pam_krb5 cannot itself get service tickets.</p></blockquote>
<p>I will describe how to configure Informix for Kerberos and Single Sign-On (SSO) authentication in the <a href="http://tibcoadmin.com/ibm/informix/enabling-informix-sso-authentication/">next post</a>.</p>
<p><strong>Update:</strong> each account in AD must have the following attributes specified: uid, uidNumber, gidNumber, unixHomeDirectory, loginShell. The easiest way to do that is using ADSI Edit snap-in for MMC.</p>
]]></content:encoded>
			<wfw:commentRss>http://tibcoadmin.com/ibm/informix/enabling-informix-pam-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

