What is the difference between the deprecated options command cifs.restrict_anonymous.enable and cifs.restrict_anonymous?
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