How to: Change error messages sent to users when save is denied (NetApp)

Summary

Previously NSS customers using NetApp infrastructure for file services have been limited to sending "Access Denied" error messages to users when quota limits are reached or file block policies are enforced.

In response to customer requests, changes have been made in both NSS and Data ONTAP that allow applications to trigger the sending of a wider range of Error messages to users when a file save action is denied.

When users attempt to save into a locked quota or save a file type that is prohibited by a File Block policy they receive an error message. The content of this error message is dependent on a chain of communication between the application the user is saving from, the application that is preventing the operation (NSS) and the operating system that the user application is saving into.

n order to send more informative error messages to users the following version requirements should be fulfilled:

NetApp 7-mode customers = NSS 9.5 SR4, ONTAP 8.2.2 or higher
NetApp CDOT customers = NSS 9.7 SR1, ONTAP 8.3 or higher

Intended results

Customers using NetApp in 7-mode have the full range of NT error messages available. Customers using NetApp Clustered Data ONTAP are limited to a specific set. For each platform, Northern recommends using one of the following error messages:

When a user attempts to save into a locked quota
- Access Denied
- Disk Full
- Quota Exceeded

When a user attempts to save a prohibited file type
- Access Denied
- Bad File Type

The messages sent are controlled by two registry keys that should be edited on each NSS application server that is managing quotas or file block policies. The process below guides operators in making these changes.

Step-by-step

FOR NETAPP 7-MODE CUSTOMERS

1. Locate two registry keys in HKLM\SOFTWARE\Northern\Quota Server 6\Server on your NSS application server(s):
- NetAppErrorCodeQuotas
- NetAppErrorCodeFileBlocks

2. Edit "NetAppErrorCodeQuota" to the value that matches the intended error message:
0xC0000022 = STATUS_ACCESS_DENIED
0xC000007F = STATUS_DISK_FULL
0xC0000044 = STATUS_QUOTA_EXCEEDED

3. Edit "NetAppErrorCodeFileBlocks" to the value that matches the intended error message:
0xC0000022 = STATUS_ACCESS_DENIED
0xC0000903 = STATUS_BAD_FILE_TYPE

 

FOR NETAPP CLUSTERED DATA ONTAP CUSTOMERS

1. Locate two registry keys in HKLM\SOFTWARE\Northern\Quota Server 6\Server on your NSS application server(s):
- NetAppCDOTErrorCodeQuotas
- NetAppCDOTErrorCodeFileBlocks

2. Edit "NetAppCDOTErrorCodeQuota" to the value that matches the intended error message:
2 = STATUS_ACCESS_DENIED
3 = STATUS_DISK_FULL
4 = STATUS_DISK_QUOTA_EXCEEDED
7 = STATUS_QUOTA_EXCEEDED

3. Edit "NetAppCDOTErrorCodeFileBlocks" to the value that matches the intended error message:
2 = STATUS_ACCESS_DENIED
5 = STATUS_CONTENT_BLOCKED
6 = STATUS_BAD_FILE_TYPE

Confirm results

FOR QUOTA ERROR MESSAGES

1. Create a small test quota with a locking threshold.

2. When logged on with a non-administrative account, save files into this test quota until the locking threshold is reached.

3. Confirm that the intended error message is received.

 

FOR FILE BLOCK ERROR MESSAGES

1. Create a File Block policy for .txt files on a test share.

2. When logged on with a non-administrative account, save a .txt file into the test shares.

3. Confirm that the intended error message is received.

KB Article: 3107

Updated: 3/15/2016

  • Category
    • Usage
  • Affected versions
    • 9.50.18206.1407 [9.5 SR4]
    • NSS 9.6
    • NSS 9.7

North America HQ

NORTHERN Parklife, Inc.
301Edgewater Place, Suite 100
Wakefield, MA 01880
USA

Voice: 781.968.5424
Fax: 781.968.5301

salesUS@northern.net

 

Additional Contact Information

EMEA & APAC HQ

NORTHERN Parklife AB
St. Göransgatan 66
112 33 Stockholm
Sweden

Voice: +46 8 457 50 00

salesHQ@northern.net

Northern Parklife



©2017 northern parklife

privacy statement 
terms of use