Skip to main content
NetApp Knowledge Base

What is the difference between the deprecated options command cifs.restrict_anonymous.enable and cifs.restrict_anonymous?

Views:
316
Visibility:
Public
Votes:
0
Category:
data-ontap-7
Specialty:
7dot
Last Updated:

Applies to

Data ONTAP 7 and earlier

Answer

The options cifs.restrict_anonymous.enable command states it is deprecated.

Both commands will change the cifs.restrict_anonymous option. The following helps understand how.

options cifs.restrict_anonymous.enable following messages are displayed:

<ON>
This option is deprecated; using options cifs.restrict_anonymous 1 instead.
Possible values for this option are
0. No special restrictions
1. Enumeration is restricted
2. Access is fully restricted

<OFF>
This option is deprecated; using options cifs.restrict_anonymous 0 instead.
Possible values for this option are
0. No special restrictions
1. Enumeration is restricted
2. Access is fully restricted

As a result of changing the options cifs.restrict_anonymous.enable directly, you will see the option did change:

<ON>
FILER>options cifs.restrict
cifs.restrict_anonymous 0
cifs.restrict_anonymous.enable off
FILER>
FILER>
FILER>options cifs.restrict_anonymous.enable on
This option is deprecated; using 'options cifs.restrict_anonymous 1' instead.
Possible values for this option are
0. No special restrictions
1. Enumeration is restricted
2. Access is fully restricted
FILER>
FILER>
FILER>options cifs.restrict
cifs.restrict_anonymous 1
cifs.restrict_anonymous.enable on
FILER>

<OFF>
FILER>options cifs.restrict
cifs.restrict_anonymous 1
cifs.restrict_anonymous.enable on
FILER>
FILER>
FILER>options cifs.restrict_anonymous.enable off
This option is deprecated; using 'options cifs.restrict_anonymous 0' instead.
Possible values for this option are
0. No special restrictions
1. Enumeration is restricted
2. Access is fully restricted
FILER>
FILER>
FILER>options cifs.restrict
cifs.restrict_anonymous 0
cifs.restrict_anonymous.enable off
FILER>

The only change of the option to 2 is to use the non deprecated options cifs.restrict_anonymous command.

Additional Information

N/A

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.