<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cblfs.nicewhileitlasted.com/NSS_Caching?action=history&amp;feed=atom&amp;title=NSS_Caching</id>
	<title>NSS Caching - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cblfs.nicewhileitlasted.com/NSS_Caching?action=history&amp;feed=atom&amp;title=NSS_Caching"/>
	<link rel="alternate" type="text/html" href="?title=NSS_Caching&amp;action=history"/>
	<updated>2026-05-21T01:22:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>?title=NSS_Caching&amp;diff=18638&amp;oldid=prev</id>
		<title>Jciccone at 01:09, 9 July 2009</title>
		<link rel="alternate" type="text/html" href="?title=NSS_Caching&amp;diff=18638&amp;oldid=prev"/>
		<updated>2009-07-09T01:09:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:09, 9 July 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NSS Caching is extremely useful when you have to rely on services such as [[nss_ldap]] or [[NIS]] as a backend for your System Databases. It will remember recent queries and reference a local database instead of the network service every time. This type of caching is not to be confused with offline caching. This type of caching will only cache values for a limited amount of time, the default is 5 minutes. For offline caching see [[NSS Offline Caching &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;for Network Services&lt;/del&gt;]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NSS Caching is extremely useful when you have to rely on services such as [[nss_ldap]] or [[NIS]] as a backend for your System Databases. It will remember recent queries and reference a local database instead of the network service every time. This type of caching is not to be confused with offline caching. This type of caching will only cache values for a limited amount of time, the default is 5 minutes. For offline caching see [[NSS Offline Caching]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The program we will be using is called &amp;#039;&amp;#039;nscd&amp;#039;&amp;#039;. It is provided by EGlibc &amp;amp; Glibc. nscd is capable of caching passwg, group, and/or hosts. In this example we are going to cache all three.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The program we will be using is called &amp;#039;&amp;#039;nscd&amp;#039;&amp;#039;. It is provided by EGlibc &amp;amp; Glibc. nscd is capable of caching passwg, group, and/or hosts. In this example we are going to cache all three.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jciccone</name></author>
	</entry>
	<entry>
		<id>?title=NSS_Caching&amp;diff=18636&amp;oldid=prev</id>
		<title>Jciccone at 01:08, 9 July 2009</title>
		<link rel="alternate" type="text/html" href="?title=NSS_Caching&amp;diff=18636&amp;oldid=prev"/>
		<updated>2009-07-09T01:08:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:08, 9 July 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NSS Caching is extremely useful when you have to rely on services such as [[nss_ldap]] or [[NIS]] as a backend for your System Databases. This type of caching is not to be confused with offline caching. This type of caching will only cache values for a limited amount of time, the default is 5 minutes. For offline caching see [[NSS Offline Caching for Network Services]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NSS Caching is extremely useful when you have to rely on services such as [[nss_ldap]] or [[NIS]] as a backend for your System Databases&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. It will remember recent queries and reference a local database instead of the network service every time&lt;/ins&gt;. This type of caching is not to be confused with offline caching. This type of caching will only cache values for a limited amount of time, the default is 5 minutes. For offline caching see [[NSS Offline Caching for Network Services]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The program we will be using is called &#039;&#039;nscd&#039;&#039;. It is provided by Glibc. nscd is capable of caching passwg, group, and/or hosts. In this example we are going to cache all three.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The program we will be using is called &#039;&#039;nscd&#039;&#039;. It is provided by &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;EGlibc &amp;amp; &lt;/ins&gt;Glibc. nscd is capable of caching passwg, group, and/or hosts. In this example we are going to cache all three.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Create a basic configuration:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Create a basic configuration:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jciccone</name></author>
	</entry>
	<entry>
		<id>?title=NSS_Caching&amp;diff=18635&amp;oldid=prev</id>
		<title>Jciccone at 01:06, 9 July 2009</title>
		<link rel="alternate" type="text/html" href="?title=NSS_Caching&amp;diff=18635&amp;oldid=prev"/>
		<updated>2009-07-09T01:06:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:06, 9 July 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NSS Caching is extremely useful when you have to rely on services such as [[nss_ldap]] or [[NIS]] as a backend for your System Databases. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Aside from the obvious benefit &lt;/del&gt;of &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;being able &lt;/del&gt;to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;access &lt;/del&gt;a &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cached version &lt;/del&gt;of &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;these resources for when &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;primary server &lt;/del&gt;is offline&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, you may also notice a speed increase &lt;/del&gt;for &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;queries&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NSS Caching is extremely useful when you have to rely on services such as [[nss_ldap]] or [[NIS]] as a backend for your System Databases. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;This type &lt;/ins&gt;of &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;caching is not &lt;/ins&gt;to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be confused with offline caching. This type of caching will only cache values for &lt;/ins&gt;a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;limited amount &lt;/ins&gt;of &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;time, &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;default &lt;/ins&gt;is &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;5 minutes. For &lt;/ins&gt;offline &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;caching see [[NSS Offline Caching &lt;/ins&gt;for &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Network Services]]&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The program we will be using is called &amp;#039;&amp;#039;nscd&amp;#039;&amp;#039;. It is provided by Glibc. nscd is capable of caching passwg, group, and/or hosts. In this example we are going to cache all three.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The program we will be using is called &amp;#039;&amp;#039;nscd&amp;#039;&amp;#039;. It is provided by Glibc. nscd is capable of caching passwg, group, and/or hosts. In this example we are going to cache all three.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jciccone</name></author>
	</entry>
	<entry>
		<id>?title=NSS_Caching&amp;diff=16420&amp;oldid=prev</id>
		<title>Jciccone at 16:17, 25 December 2008</title>
		<link rel="alternate" type="text/html" href="?title=NSS_Caching&amp;diff=16420&amp;oldid=prev"/>
		<updated>2008-12-25T16:17:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:17, 25 December 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l92&quot;&gt;Line 92:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 92:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  EOF&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  EOF&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;Link the nscd bootscript into the runlevels:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Link the nscd bootscript into the runlevels:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  for rl in /etc/rc.d/rc{{0,1,2,6}.d/K95,{3,4,5}.d/S05}nscd; do&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  for rl in /etc/rc.d/rc{{0,1,2,6}.d/K95,{3,4,5}.d/S05}nscd; do&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    ln -sfv ../init.d/nscd $rl&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    ln -sfv ../init.d/nscd $rl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  done&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  done&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jciccone</name></author>
	</entry>
	<entry>
		<id>?title=NSS_Caching&amp;diff=16419&amp;oldid=prev</id>
		<title>Jciccone: New page: NSS Caching is extremely useful when you have to rely on services such as nss_ldap or NIS as a backend for your System Databases. Aside from the obvious benefit of being able to ac...</title>
		<link rel="alternate" type="text/html" href="?title=NSS_Caching&amp;diff=16419&amp;oldid=prev"/>
		<updated>2008-12-25T16:14:42Z</updated>

		<summary type="html">&lt;p&gt;New page: NSS Caching is extremely useful when you have to rely on services such as &lt;a href=&quot;/Nss_ldap&quot; title=&quot;Nss ldap&quot;&gt;nss_ldap&lt;/a&gt; or &lt;a href=&quot;?title=NIS&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;NIS (page does not exist)&quot;&gt;NIS&lt;/a&gt; as a backend for your System Databases. Aside from the obvious benefit of being able to ac...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;NSS Caching is extremely useful when you have to rely on services such as [[nss_ldap]] or [[NIS]] as a backend for your System Databases. Aside from the obvious benefit of being able to access a cached version of these resources for when the primary server is offline, you may also notice a speed increase for queries.&lt;br /&gt;
&lt;br /&gt;
The program we will be using is called &amp;#039;&amp;#039;nscd&amp;#039;&amp;#039;. It is provided by Glibc. nscd is capable of caching passwg, group, and/or hosts. In this example we are going to cache all three.&lt;br /&gt;
&lt;br /&gt;
Create a basic configuration:&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/nscd.conf &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/nscd.conf&lt;br /&gt;
 &lt;br /&gt;
 # By changing yes to no it will disable the cache for the service in question&lt;br /&gt;
 enable-cache passwd yes&lt;br /&gt;
 enable-cache group yes&lt;br /&gt;
 enable-cache hosts yes&lt;br /&gt;
 &lt;br /&gt;
 # The following will cause the cache to remain when the service is restarted&lt;br /&gt;
 persistent passwd yes&lt;br /&gt;
 persistent group yes&lt;br /&gt;
 persistent hosts yes&lt;br /&gt;
 &lt;br /&gt;
 # The following will allow mmaped access to the nscd databases for service lookups.&lt;br /&gt;
 shared passwd yes&lt;br /&gt;
 shared group yes&lt;br /&gt;
 shared hosts yes&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/nscd.conf&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
For additional configuration options see the nscd.conf(5) manpage.&lt;br /&gt;
&lt;br /&gt;
Create the database cache directory as well as the nscd socket directory:&lt;br /&gt;
&lt;br /&gt;
 install -dv -m755 /var/db/nscd&lt;br /&gt;
 install -dv -m755 /var/run/nscd&lt;br /&gt;
&lt;br /&gt;
Before we go too much further. Lets test nscd and see how it&amp;#039;s working:&lt;br /&gt;
&lt;br /&gt;
 nscd -d&lt;br /&gt;
&lt;br /&gt;
After you start nscd you should beable to log in on another console and you should see the debug output. If this works you can run the following command to get some statistics.&lt;br /&gt;
&lt;br /&gt;
 nscd -g&lt;br /&gt;
&lt;br /&gt;
If all is well then you need to start the nscd daemon with the system.&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/rc.d/init.d/nscd &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 ########################################################################&lt;br /&gt;
 # Begin $rc_base/init.d/nscd&lt;br /&gt;
 #&lt;br /&gt;
 # Description : Name Service Service Caching Daemon Bootscript&lt;br /&gt;
 #&lt;br /&gt;
 # Authors     : Joe Ciccone &amp;lt;jciccone@gmail.com&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 # Version     : 00.01&lt;br /&gt;
 #&lt;br /&gt;
 # Notes       :&lt;br /&gt;
 #&lt;br /&gt;
 ########################################################################&lt;br /&gt;
 &lt;br /&gt;
 . /etc/sysconfig/rc&lt;br /&gt;
 . ${rc_functions}&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;${1}&amp;quot; in&lt;br /&gt;
         start)&lt;br /&gt;
                 boot_mesg &amp;quot;Starting the Name Service Caching Daemon...&amp;quot;&lt;br /&gt;
                 loadproc /usr/sbin/nscd&lt;br /&gt;
                 ;;&lt;br /&gt;
 &lt;br /&gt;
         stop)&lt;br /&gt;
                 boot_mesg &amp;quot;Stopping the Name Service Caching Daemon...&amp;quot;&lt;br /&gt;
                 /usr/sbin/nscd -K&lt;br /&gt;
                 evaluate_retval&lt;br /&gt;
                 ;;&lt;br /&gt;
 &lt;br /&gt;
         restart)&lt;br /&gt;
                 ${0} stop&lt;br /&gt;
                 sleep 1&lt;br /&gt;
                 ${0} start&lt;br /&gt;
                 ;;&lt;br /&gt;
 &lt;br /&gt;
         status)&lt;br /&gt;
                 statusproc nscd&lt;br /&gt;
                 ;;&lt;br /&gt;
 &lt;br /&gt;
         *)&lt;br /&gt;
                 echo &amp;quot;Usage: ${0} {start|stop|restart|status}&amp;quot;&lt;br /&gt;
                 exit 1&lt;br /&gt;
                 ;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 # End $rc_base/init.d/nscd&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
 Link the nscd bootscript into the runlevels:&lt;br /&gt;
&lt;br /&gt;
 for rl in /etc/rc.d/rc{{0,1,2,6}.d/K95,{3,4,5}.d/S05}nscd; do&lt;br /&gt;
   ln -sfv ../init.d/nscd $rl&lt;br /&gt;
 done&lt;/div&gt;</summary>
		<author><name>Jciccone</name></author>
	</entry>
</feed>