Offset 5, 35 lines modified | Offset 5, 35 lines modified |
5 | » <code·class="email"><<a·class="email"·href="mailto:mogul-sysauth-pgsql@gelatinous.com">mogul-sysauth-pgsql@gelatinous.com</a>></code><br·/> | 5 | » <code·class="email"><<a·class="email"·href="mailto:mogul-sysauth-pgsql@gelatinous.com">mogul-sysauth-pgsql@gelatinous.com</a>></code><br·/> |
6 | » </p></div></div></div><div·class="author"><h3·class="author"><span·class="firstname">Wichert</span>·<span·class="surname">Akkerman</span></h3><div·class="affiliation"><div·class="address"><p><br·/> | 6 | » </p></div></div></div><div·class="author"><h3·class="author"><span·class="firstname">Wichert</span>·<span·class="surname">Akkerman</span></h3><div·class="affiliation"><div·class="address"><p><br·/> |
7 | » <code·class="email"><<a·class="email"·href="mailto:wichert@wiggy.net">wichert@wiggy.net</a>></code><br·/> | 7 | » <code·class="email"><<a·class="email"·href="mailto:wichert@wiggy.net">wichert@wiggy.net</a>></code><br·/> |
8 | » </p></div></div></div><div·class="author"><h3·class="author"><span·class="firstname">Christian</span>·<span·class="surname">Bayle</span></h3><div·class="affiliation"><div·class="address"><p><br·/> | 8 | » </p></div></div></div><div·class="author"><h3·class="author"><span·class="firstname">Christian</span>·<span·class="surname">Bayle</span></h3><div·class="affiliation"><div·class="address"><p><br·/> |
9 | » <code·class="email"><<a·class="email"·href="mailto:bayle@debian.org">bayle@debian.org</a>></code><br·/> | 9 | » <code·class="email"><<a·class="email"·href="mailto:bayle@debian.org">bayle@debian.org</a>></code><br·/> |
10 | » </p></div></div></div><div·class="author"><h3·class="author"><span·class="firstname">Russell</span>·<span·class="surname">Smith</span></h3><div·class="affiliation"><div·class="address"><p><br·/> | 10 | » </p></div></div></div><div·class="author"><h3·class="author"><span·class="firstname">Russell</span>·<span·class="surname">Smith</span></h3><div·class="affiliation"><div·class="address"><p><br·/> |
11 | » <code·class="email"><<a·class="email"·href="mailto:mr-russ@pws.com.au">mr-russ@pws.com.au</a>></code><br·/> | 11 | » <code·class="email"><<a·class="email"·href="mailto:mr-russ@pws.com.au">mr-russ@pws.com.au</a>></code><br·/> |
12 | » </p></div></div></div></div></div><div><p·class="copyright">Copyright·©·2001,·2004,·2005·Jörg·Wendland,·Wichert·Akkerman,·Russell·Smith</p></div><div><div·class="legalnotice"·title="Legal·Notice"><a·id="idp61704632"></a><p> | 12 | » </p></div></div></div></div></div><div><p·class="copyright">Copyright·©·2001,·2004,·2005·Jörg·Wendland,·Wichert·Akkerman,·Russell·Smith</p></div><div><div·class="legalnotice"·title="Legal·Notice"><a·id="idp61233592"></a><p> |
13 | » Permission·is·granted·to·copy,·distribute·and/or·modify·this·document | 13 | » Permission·is·granted·to·copy,·distribute·and/or·modify·this·document |
14 | » under·the·terms·of·the·GNU·Free·Documentation·License,·Version·1.1·or | 14 | » under·the·terms·of·the·GNU·Free·Documentation·License,·Version·1.1·or |
15 | » any·later·version·published·by·the·Free·Software·Foundation.·There | 15 | » any·later·version·published·by·the·Free·Software·Foundation.·There |
16 | » are·no·invariant·sections.·A·copy·of·the·license·is·included·in·the | 16 | » are·no·invariant·sections.·A·copy·of·the·license·is·included·in·the |
17 | » section·entitled·"GNU·Free·Documentation·License". | 17 | » section·entitled·"GNU·Free·Documentation·License". |
18 | ······</p></div></div></div><hr·/></div><div·class="toc"><p><strong>Table·of·Contents</strong></p><dl><dt><span·class="preface"><a·href="#preface">Preface</a></span></dt><dt><span·class="chapter"><a·href="#prerequisites">1.·Prerequisites</a></span></dt><dt><span·class="chapter"><a·href="#idp61711288">2.·Module·and·Database·Setup</a></span></dt><dd><dl><dt><span·class="section"><a·href="#dbstructure">required·database·structure</a></span></dt><dd><dl><dt><span·class="section"><a·href="#tables">tables·and·fields</a></span></dt></dl></dd></dl></dd><dt><span·class="chapter"><a·href="#configuration">3.·configuring·the·module</a></span></dt><dt><span·class="chapter"><a·href="#nss-setup">4.·Name·Service·Switch·Setup</a></span></dt><dt><span·class="appendix"><a·href="#appendix">A.·Examples</a></span></dt></dl></div><div·class="list-of-examples"><p><strong>List·of·Examples</strong></p><dl><dt>A.1.·<a·href="#dbschema">Database·schema</a></dt><dt>A.2.·<a·href="#conffile">Configuration·file</a></dt></dl></div><div·class=·✂ | 18 | ······</p></div></div></div><hr·/></div><div·class="toc"><p><strong>Table·of·Contents</strong></p><dl><dt><span·class="preface"><a·href="#preface">Preface</a></span></dt><dt><span·class="chapter"><a·href="#prerequisites">1.·Prerequisites</a></span></dt><dt><span·class="chapter"><a·href="#idp61240248">2.·Module·and·Database·Setup</a></span></dt><dd><dl><dt><span·class="section"><a·href="#dbstructure">required·database·structure</a></span></dt><dd><dl><dt><span·class="section"><a·href="#tables">tables·and·fields</a></span></dt></dl></dd></dl></dd><dt><span·class="chapter"><a·href="#configuration">3.·configuring·the·module</a></span></dt><dt><span·class="chapter"><a·href="#nss-setup">4.·Name·Service·Switch·Setup</a></span></dt><dt><span·class="appendix"><a·href="#appendix">A.·Examples</a></span></dt></dl></div><div·class="list-of-examples"><p><strong>List·of·Examples</strong></p><dl><dt>A.1.·<a·href="#dbschema">Database·schema</a></dt><dt>A.2.·<a·href="#conffile">Configuration·file</a></dt></dl></div><div·class=·✂ |
19 | ······This·document·covers·setup·and·use·of·the·Name·Service·Switch·(NSS) | 19 | ······This·document·covers·setup·and·use·of·the·Name·Service·Switch·(NSS) |
20 | ······Module·<code·class="filename">libnss-pgsql.so</code>.·Its·purpose·is·replace·the | 20 | ······Module·<code·class="filename">libnss-pgsql.so</code>.·Its·purpose·is·replace·the |
21 | ······flatfile·user,·group·and·shadow·databases·in·<code·class="filename">/etc</code>·with·a | 21 | ······flatfile·user,·group·and·shadow·databases·in·<code·class="filename">/etc</code>·with·a |
22 | ······relational·database·on·a·PostgreSQL·server.·It·is·highly·configurable·to | 22 | ······relational·database·on·a·PostgreSQL·server.·It·is·highly·configurable·to |
23 | ······fit·onto·most·existing·databases. | 23 | ······fit·onto·most·existing·databases. |
24 | ····</p></div><div·class="chapter"·title="Chapter 1. Prerequisites"><div·class="titlepage"><div><div><h2·class="title"><a·id="prerequisites"></a>Chapter 1. Prerequisites</h2></div></div></div><p> | 24 | ····</p></div><div·class="chapter"·title="Chapter 1. Prerequisites"><div·class="titlepage"><div><div><h2·class="title"><a·id="prerequisites"></a>Chapter 1. Prerequisites</h2></div></div></div><p> |
25 | ······For·installation·instructions·please·see·the·files | 25 | ······For·installation·instructions·please·see·the·files |
26 | ······<code·class="filename">README</code>·and·<code·class="filename">INSTALL</code>·in·the | 26 | ······<code·class="filename">README</code>·and·<code·class="filename">INSTALL</code>·in·the |
27 | ······source·distribution. | 27 | ······source·distribution. |
28 | ····</p><p> | 28 | ····</p><p> |
29 | ······To·use·this·module·you·will·need·a·PostgreSQL·database·containing·some | 29 | ······To·use·this·module·you·will·need·a·PostgreSQL·database·containing·some |
30 | ······sort·of·user·account·information.·See·<a·class="xref"·href="#dbschema"·title="Example A.1. Database·schema">Example A.1,·“Database·schema”</a>·for·an | 30 | ······sort·of·user·account·information.·See·<a·class="xref"·href="#dbschema"·title="Example A.1. Database·schema">Example A.1,·“Database·schema”</a>·for·an |
31 | ······example·database. | 31 | ······example·database. |
32 | ····</p></div><div·class="chapter"·title="Chapter 2. Module·and·Database·Setup"><div·class="titlepage"><div><div><h2·class="title"><a·id="idp61711288"></a>Chapter 2. Module·and·Database·Setup</h2></div></div></div><div·class="toc"><p><strong>Table·of·Contents</strong></p><dl><dt><span·class="section"><a·href="#dbstructure">required·database·structure</a></span></dt><dd><dl><dt><span·class="section"><a·href="#tables">tables·and·fields</a></span></dt></dl></dd></dl></div><div·class="section"·title="required·database·structure"><div·class="titlepage"><div><div><h2·class="title"·style="clear:·both"><a·id="dbstructure"></a>required·database·structure</h2></div></div></div><p> | 32 | ····</p></div><div·class="chapter"·title="Chapter 2. Module·and·Database·Setup"><div·class="titlepage"><div><div><h2·class="title"><a·id="idp61240248"></a>Chapter 2. Module·and·Database·Setup</h2></div></div></div><div·class="toc"><p><strong>Table·of·Contents</strong></p><dl><dt><span·class="section"><a·href="#dbstructure">required·database·structure</a></span></dt><dd><dl><dt><span·class="section"><a·href="#tables">tables·and·fields</a></span></dt></dl></dd></dl></div><div·class="section"·title="required·database·structure"><div·class="titlepage"><div><div><h2·class="title"·style="clear:·both"><a·id="dbstructure"></a>required·database·structure</h2></div></div></div><p> |
33 | » To·use·this·module·with·a·database·you·will·need·at·least·three·tables | 33 | » To·use·this·module·with·a·database·you·will·need·at·least·three·tables |
34 | » in·that·database.·One·for·account·data·(the·information·usually·stored | 34 | » in·that·database.·One·for·account·data·(the·information·usually·stored |
35 | » in·<code·class="filename">/etc/passwd</code>),·one·for·group·data | 35 | » in·<code·class="filename">/etc/passwd</code>),·one·for·group·data |
36 | » (<code·class="filename">/etc/group</code>)·and·another·one·storing·information | 36 | » (<code·class="filename">/etc/group</code>)·and·another·one·storing·information |
37 | » about·groupmembership·(there·is·a·m:n·relation·between·passwd·and·group | 37 | » about·groupmembership·(there·is·a·m:n·relation·between·passwd·and·group |
38 | » so·you·need·this·weak·entity).·If·you·have·an·existing·database·you·do | 38 | » so·you·need·this·weak·entity).·If·you·have·an·existing·database·you·do |
39 | » not·want·to·modify·you·can·use·views·or·table·expressions·(see· | 39 | » not·want·to·modify·you·can·use·views·or·table·expressions·(see· |