Skip to main content
Effective December 3 - NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources. For accounts that did not pre-register (prior to Dec 3) access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity. To learn more, Read the FAQ and Watch the video.
NetApp Knowledge Base

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

Views:
121
Visibility:
Public
Votes:
0
Category:
data-ontap-7
Specialty:
cifs
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