Revert "docs-xml: Update documentation for removal of NIS support"
authorSamuel Cabrero <scabrero@samba.org>
Fri, 3 Jun 2022 12:12:01 +0000 (14:12 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 9 Jun 2022 21:45:28 +0000 (21:45 +0000)
This partly reverts commit a72bc3e15d3ed62e9ad2c0a97ce5d6d653abb048.

Revert only the chunks related to netgroups and skip NIS related ones.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15087

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
docs-xml/smbdotconf/security/hostsallow.xml
docs-xml/smbdotconf/security/invalidusers.xml
docs-xml/smbdotconf/security/usernamemap.xml
docs-xml/smbdotconf/security/validusers.xml
docs-xml/smbdotconf/winbind/winbindseparator.xml

index a052e7f79cdb1ef0a90f8e050ec14e79edf0d459..8b4b62268a37c361f320b1a91299f6760b24887d 100644 (file)
 
     <para><command moreinfo="none">hosts allow = lapland, arvidsjaur</command></para>
 
+    <para>Example 4: allow only hosts in NIS netgroup &quot;foonet&quot;, but 
+    deny access from one particular host</para>
+
+    <para><command moreinfo="none">hosts allow = @foonet</command></para>
+
+    <para><command moreinfo="none">hosts deny = pirate</command></para>
+
     <note><para>Note that access still requires suitable user-level passwords.</para></note>
 
     <para>See <citerefentry><refentrytitle>testparm</refentrytitle>
index 268cdfad5603782f6ce79d97bb620b9624bbc727..b2fb2b9d293a4f0557b4d90b6c31a387bb03bd12 100644 (file)
@@ -7,8 +7,21 @@
     to login to this service. This is really a <emphasis>paranoid</emphasis> 
     check to absolutely ensure an improper setting does not breach 
     your security.</para>
+               
+    <para>A name starting with a '@' is interpreted as an NIS 
+    netgroup first (if your system supports NIS), and then as a UNIX 
+    group if the name was not found in the NIS netgroup database.</para>
 
-    <para>A name starting with a '@' is interpreted UNIX group.</para>
+    <para>A name starting with '+' is interpreted only 
+    by looking in the UNIX group database via the NSS getgrnam() interface. A name starting with 
+    '&amp;' is interpreted only by looking in the NIS netgroup database 
+    (this requires NIS to be working on your system). The characters 
+    '+' and '&amp;' may be used at the start of the name in either order 
+    so the value <parameter moreinfo="none">+&amp;group</parameter> means check the 
+    UNIX group database, followed by the NIS netgroup database, and 
+    the value <parameter moreinfo="none">&amp;+group</parameter> means check the NIS
+    netgroup database, followed by the UNIX group database (the 
+    same as the '@' prefix).</para>
 
     <para>The current servicename is substituted for <parameter moreinfo="none">%S</parameter>. 
                This is useful in the [homes] section.</para>
index eab72bb8672c3d984476f524d038d77eeb8f63e4..809a54c1e2ff170663b80426c60c682dc55e7cf0 100644 (file)
        </para>
 
 
+    <para>
+       If your system supports the NIS NETGROUP option then the netgroup database is checked before the <filename
+       moreinfo="none">/etc/group </filename> database for matching groups.
+       </para>
+
     <para>
        You can map Windows usernames that have spaces in them by using double quotes around the name. For example:
 <programlisting>
index 6b0bacfd78a6257ce2389a9202a68a0109223762..0b681a1fef57a0e406a68c35b10c66295c95ddb2 100644 (file)
@@ -4,10 +4,9 @@
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
     <para>
-        This is a list of users that should be allowed to login to this service.
-        Names starting with an '@' are interpreted using the same rules as
-        described in the
-        <parameter moreinfo="none">invalid users</parameter> parameter.
+    This is a list of users that should be allowed to login to this service. Names starting with 
+    '@', '+' and  '&amp;' are interpreted using the same rules as described in the 
+    <parameter moreinfo="none">invalid users</parameter> parameter.
     </para>
 
     <para>
index 9be46109cd6403e484c729875d63f4238ad2fe75..eda14f4e03a6f9b456b1409ad7fadc41f2a3f142 100644 (file)
@@ -10,9 +10,9 @@
        and <filename moreinfo="none">nss_winbind.so</filename> modules for UNIX services.
        </para>
 
-       <para>Please note that setting this parameter to + can cause problems
+       <para>Please note that setting this parameter to + causes problems
        with group membership at least on glibc systems, as the character +
-       was used as a special character for NIS in /etc/group.</para>
+       is used as a special character for NIS in /etc/group.</para>
 </description>
 
 <value type="default">\</value>