<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Getent</title><link>https://sourceforge.net/p/dbis/wiki/Getent/</link><description>Recent changes to Getent</description><atom:link href="https://sourceforge.net/p/dbis/wiki/Getent/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 05 Mar 2015 11:47:19 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dbis/wiki/Getent/feed" rel="self" type="application/rss+xml"/><item><title>Getent modified by Mark R. Bannister</title><link>https://sourceforge.net/p/dbis/wiki/Getent/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,6 +1,6 @@
 Getent
 ======
-The system-supplied `getent` tool is a CLI interface to the [C API] and can be used for querying DBIS in the same way as any other NSS map, provided that the [Name Service Switch] configuration has been completed first.
+The system-supplied `getent` tool is a CLI interface to the C API that can be used for querying DBIS in the same way as any other NSS map, provided that the [Name Service Switch] configuration has been completed first.

 Here is a comparison of using the [Client Tool] (in short output mode) and using the system-supplied `getent` tool on a password entry:

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark R. Bannister</dc:creator><pubDate>Thu, 05 Mar 2015 11:47:19 -0000</pubDate><guid>https://sourceforge.net327b1a0664c0c580df2377bc96a6a5c1081f1461</guid></item><item><title>Getent modified by Mark R. Bannister</title><link>https://sourceforge.net/p/dbis/wiki/Getent/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,12 +1,13 @@
 Getent
 ======
-The system-supplied `getent` tool is a CLI interface to the [C API] and can be used for querying DBIS is the same way as any other NSS map, provided that the [Name Service Switch] configuration has been completed first.
+The system-supplied `getent` tool is a CLI interface to the [C API] and can be used for querying DBIS in the same way as any other NSS map, provided that the [Name Service Switch] configuration has been completed first.

 Here is a comparison of using the [Client Tool] (in short output mode) and using the system-supplied `getent` tool on a password entry:

 ~~~~
 $ dbis getpwnam mark
 mark:x:801:900:Bannister, Mark:/home/mark:/bin/bash
+
 $ getent passwd mark
 mark:x:801:900:Bannister, Mark:/home/mark:/bin/bash
 ~~~~
@@ -16,10 +17,13 @@
 ~~~~
 $ dbis getgrgid 900
 prostaff:x:900:
+
 $ getent group 900
 prostaff:x:900:
 ~~~~

+The `getent` command uses the C API which invokes the NSS library, which in turn connects to `dbis-cachemgr` via the NSS socket.  The [Client Tool] uses the Python API which connects directly to `dbis-cachemgr` via the client socket.
+
 Note that the [Client Tool] provides more functionality than `getent` and allows all DBIS maps to be queried, whereas `getent` is restricted to those configured in the [Name Service Switch] file.

 For more information on the other components of DBIS, see [Using DBIS].
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark R. Bannister</dc:creator><pubDate>Thu, 15 Jan 2015 16:59:45 -0000</pubDate><guid>https://sourceforge.net985042dfe0470173c874a8eb21872007366b08b2</guid></item><item><title>Getent modified by Mark R. Bannister</title><link>https://sourceforge.net/p/dbis/wiki/Getent/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="getent"&gt;Getent&lt;/h1&gt;
&lt;p&gt;The system-supplied &lt;code&gt;getent&lt;/code&gt; tool is a CLI interface to the &lt;span&gt;[C API]&lt;/span&gt; and can be used for querying DBIS is the same way as any other NSS map, provided that the &lt;a class="alink" href="/p/dbis/wiki/Name%20Service%20Switch"&gt;[Name Service Switch]&lt;/a&gt; configuration has been completed first.&lt;/p&gt;
&lt;p&gt;Here is a comparison of using the &lt;a class="alink" href="/p/dbis/wiki/Client%20Tool"&gt;[Client Tool]&lt;/a&gt; (in short output mode) and using the system-supplied &lt;code&gt;getent&lt;/code&gt; tool on a password entry:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="err"&gt;$&lt;/span&gt; &lt;span class="n"&gt;dbis&lt;/span&gt; &lt;span class="n"&gt;getpwnam&lt;/span&gt; &lt;span class="n"&gt;mark&lt;/span&gt;
&lt;span class="nl"&gt;mark:&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;801&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;900&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;Bannister&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Mark&lt;/span&gt;&lt;span class="o"&gt;:/&lt;/span&gt;&lt;span class="n"&gt;home&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;mark&lt;/span&gt;&lt;span class="o"&gt;:/&lt;/span&gt;&lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;bash&lt;/span&gt;
&lt;span class="err"&gt;$&lt;/span&gt; &lt;span class="n"&gt;getent&lt;/span&gt; &lt;span class="n"&gt;passwd&lt;/span&gt; &lt;span class="n"&gt;mark&lt;/span&gt;
&lt;span class="nl"&gt;mark:&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;801&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;900&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;Bannister&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Mark&lt;/span&gt;&lt;span class="o"&gt;:/&lt;/span&gt;&lt;span class="n"&gt;home&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;mark&lt;/span&gt;&lt;span class="o"&gt;:/&lt;/span&gt;&lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;bash&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Here is another comparison on a group entry:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="err"&gt;$&lt;/span&gt; &lt;span class="n"&gt;dbis&lt;/span&gt; &lt;span class="n"&gt;getgrgid&lt;/span&gt; &lt;span class="mi"&gt;900&lt;/span&gt;
&lt;span class="nl"&gt;prostaff:&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;900&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
&lt;span class="err"&gt;$&lt;/span&gt; &lt;span class="n"&gt;getent&lt;/span&gt; &lt;span class="n"&gt;group&lt;/span&gt; &lt;span class="mi"&gt;900&lt;/span&gt;
&lt;span class="nl"&gt;prostaff:&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;900&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Note that the &lt;a class="alink" href="/p/dbis/wiki/Client%20Tool"&gt;[Client Tool]&lt;/a&gt; provides more functionality than &lt;code&gt;getent&lt;/code&gt; and allows all DBIS maps to be queried, whereas &lt;code&gt;getent&lt;/code&gt; is restricted to those configured in the &lt;a class="alink" href="/p/dbis/wiki/Name%20Service%20Switch"&gt;[Name Service Switch]&lt;/a&gt; file.&lt;/p&gt;
&lt;p&gt;For more information on the other components of DBIS, see &lt;a class="alink" href="/p/dbis/wiki/Using%20DBIS"&gt;[Using DBIS]&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark R. Bannister</dc:creator><pubDate>Thu, 15 Jan 2015 07:29:04 -0000</pubDate><guid>https://sourceforge.net1627ad2345b280c08e077fade00a08e7e96c8836</guid></item></channel></rss>