home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / drafts / draft_ietf_q_t / draft-ietf-snmpv3-acm-03.txt < prev    next >
Text File  |  1997-10-01  |  87KB  |  2,302 lines

  1.  
  2.  
  3.  
  4.              View-based Access Control Model (VACM) for the
  5.                 Simple Network Management Protocol (SNMP)
  6.  
  7.                           30 September 1997                               2
  8.  
  9.  
  10.                              Bert Wijnen
  11.                        IBM T. J. Watson Research
  12.                           wijnen@vnet.ibm.com
  13.  
  14.                             Randy Presuhn
  15.                           BMC Software, Inc.
  16.                            rpresuhn@bmc.com
  17.  
  18.                            Keith McCloghrie
  19.                           Cisco Systems, Inc.
  20.                              kzm@cisco.com
  21.  
  22.                     <draft-ietf-snmpv3-acm-03.txt>                        |
  23.  
  24.  
  25.                           Status of this Memo
  26.  
  27. This document is an Internet-Draft.  Internet-Drafts are working
  28. documents of the Internet Engineering Task Force (IETF), its areas,
  29. and its working groups.  Note that other groups may also distribute
  30. working documents as Internet-Drafts.
  31.  
  32. Internet-Drafts are draft documents valid for a maximum of six months
  33. and may be updated, replaced, or obsoleted by other documents at any
  34. time.  It is inappropriate to use Internet- Drafts as reference
  35. material or to cite them other than as ``work in progress.''
  36.  
  37. To learn the current status of any Internet-Draft, please check the
  38. ``1id-abstracts.txt'' listing contained in the Internet- Drafts Shadow
  39. Directories on ds.internic.net (US East Coast), nic.nordu.net (Europe),
  40. ftp.isi.edu (US West Coast), or munnari.oz.au (Pacific Rim).
  41.  
  42.  
  43.                           Abstract
  44.  
  45. This document describes the View-based Access Control Model for use
  46. in the SNMP architecture [SNMP-ARCH].  It defines the Elements of
  47. Procedure for controlling access to management information.  This
  48. document also includes a MIB for remotely managing the configuration
  49. parameters for the View-based Access Control Model.
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page  1]
  58.  
  59. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  60.  
  61.  
  62. 0.  Issues and Change Log
  63.  
  64.     When we go to RFC status, we will remove all the text of section 0.   2
  65.  
  66. 0.1.  Resolved issues
  67.   - There is a reverse mapping from groupName to securityName, see
  68.     the vacmGroupListTable. However, given the amount of object
  69.     we're adding, we may want to remove/postpone this table?
  70.     Resolution: remove for now.
  71.   - Do we need/want the level of detail of errorIndication that
  72.     the isAccessAllowed primitive will return? Those who strongly
  73.     object to the details listed now, better let us know (on the
  74.     mailing list preferably) as soon as possible.
  75.     Resolution: yes.
  76.   - Should we use human readable strings or integers for an index for
  77.     the tables.
  78.     Resolution. It was decided at the 1st and 2nd interim meeting that
  79.     using human readable strings would be very helpful when humans
  80.     have to configure many of those tables.  We must specify the size
  81.     limits for objects that have a human readable SnmpAdminString and
  82.     which are used for indexing. It seems that a size limit of 32
  83.     is appropriate and acceptable (although tight in some languages).
  84.     Note also, that the issue is not just ACM, it is a general issue
  85.     that applies to all MIBs in all documents.
  86.   - Ensure valid indices.
  87.     Resolution. String based indices now have a size limit to ensure
  88.     that the resulting OIDs for instances will not exceed the limits
  89.     defined in RFC1905.
  90.   - The initial "all-iso" MIB view was not workable.
  91.     Resolution. Define and use the "internet" MIB view instead.
  92.  
  93.  
  94. 0.2.  Change Log
  95.  
  96. [version 6.2] - This is the September 30 version                          2
  97.   - these changes are marked with a revision-code "2" in right margin     2
  98.   - fix writeup of vacmAccessTable (comments Dave Levi)                   2
  99.   - Quick spell check.                                                    2
  100.   - SMICng compile the mib to verify correct syntax                       2
  101.   - paginate.                                                             2
  102.   - post as I-D:    <draft-ietf-snmpv3-acm-03.txt>                        2
  103.                                                                           2
  104. [version 6.1] - This is the September 29 version                          |
  105.   - these changes are marked with a revision-code "|" in right margin     |
  106.   - fixes based on comments by Dave Levy and Jeff Case                    |                                                   !
  107.   - use vacmAccessSecurityModel as the index in vacmAccessTable           |
  108.   - add text to section 1 to explain usage of SHOULD, MUST and such.      |
  109.   - add a comma too e.g. and i.e. occurrences.                            |
  110.   - remove any un-referenced references from "references" section.        |
  111.   - Quick spell check.                                                    |
  112.   - SMICng compile the mib to verify correct syntax                       |
  113.  
  114.  
  115.  
  116. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page  2]
  117.  
  118. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  119.  
  120.  
  121.                                                                           |
  122. [version 6.0] - This is the September 22 version                          |
  123.   - these changes are marked with a revision-code "|" in right margin     |
  124.   - Be more specific on instance level granularity in                     |
  125.     vacmViewTreeFamilyTable                                               |
  126.   - Add clarifying text to sections 5.1 and 5.2                           |
  127.   - add clarifying text to vacmContextName DESCRIPTION clause             |
  128.   - mark references that are (for now) just placeholders and not          |
  129.     really referenced.                                                    |
  130.   - added text about not needing to support instance-level granularity    |
  131.     for access control. Also explained what a manager can expect in       |
  132.     that case.                                                            |
  133.   - Some changes based on Dave Perkins comments                           |
  134.     - viewSpinLock DESCRIPTION clause                                     |
  135.     - diagram intro in section 3.1                                        |
  136.   - Some changes based on JDC comments                                    |
  137.     - change in appendix A.                                               |
  138.   - numbered the bullets in section 3.1 for easier reference.             |
  139.   - New writeup for selection of proper entry from vacmAccessTable        |
  140.   - Added vacmAccessSecurityModel in vacmAccessTable, which can take      |
  141.     a value of any; had to renumber other columns as a result.            |
  142.   - some more text changes to clarify text better.                        |
  143.                                                                           |
  144.  
  145. [version 5.2] - This is the August 1 version.
  146.   - Incorporate comments from Keith
  147.   - Incorporate comments from Randy
  148.   - Add figure to section 3
  149.   - Update References
  150.   - Update acknowledgement section
  151.   - Add reference to RowStatus TC when using RowStatus
  152.   - Spell check once more
  153.   - Paginate
  154.   - Post to I-D repository and SNMPv3 mailing list as:
  155.     <draft-ietf-snmpv3-acm-02.txt>
  156.  
  157. [version 5.1] - This is the July 28 version.
  158.   - Spell check
  159.   - SMICng check
  160.  
  161. [version 5.0] - This is the July 24 version.
  162.   - various types and editorial changes
  163.   - Adapt to latest Service Primitives
  164.   - remove vacmGroupListTable
  165.   - change index sequence for vacmSecurityToGroupTable
  166.   - rename prefix from acm to vacm
  167.   - rename LoS to securityLevel
  168.   - Changes as a result of comments on snmpv3 list
  169.   - use the bridge MIB as an example instead of repeater MIB.
  170.   - rename "security-posture" to "initial-configuration"
  171.  
  172.  
  173.  
  174.  
  175. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page  3]
  176.  
  177. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  178.  
  179.  
  180. [version 4.2] - This is the July 14 version.
  181.   - Address comments by Keith:
  182.     - Renumber section 2.4 to 2.5
  183.     - Add new sections 2.4, 2.4.1, 2.4.2 about MIB Views and Subtrees
  184.       and Families,
  185.     - Use some more precise language at various places.
  186.   - Add reference to RFC2119 about use of SHOULD and MUST
  187.   - rename the acmGroupTable to acmSecurityToGroupTable because that
  188.     much better indicates the function of this table.
  189.   - improved the writeup on statusInformation for the isAccessAllowed
  190.     primitive.
  191.   - paginate and generate table of contents
  192.   - posted as I-D <draft-ietf-snmpv3-acm-01.txt> on 15 July
  193.  
  194. [version 4.1] - This is the July 12 version.
  195.   - Adapt to latest list of Primitives/Parameters.
  196.   - Handle comments from co-editor Randy
  197.   - Added the SHOULD "initial" configuration
  198.   - Checked the MIB with SMICng
  199.  
  200. [version 4.0] - This is the July 7 version.
  201.   - Adopt to decisions/comments made are 2nd interim
  202.     - securityName to groupName mapping is in ACM
  203.     - out of the box configurations to be described as SHOULD
  204.     - UTF-8 issue still open, but move to general issue (ARCH)
  205.       where the SnmpAdminString is defined.
  206.     - ACM returns errorIndication based on which the caller
  207.       may increment error counter which may result in a
  208.       Report PDU.
  209.     - No statistics counters are kept in ACM
  210.     - removed viewTable; added acmViewSpinLock
  211.   - Address various comments from co-editors (Randy and Keith)
  212.   - Address comments made on mailing list(s).
  213.  
  214. [version 3.1] - This is the June 18 version.
  215.   - remove old (resolved) issues
  216.   - list new issues
  217.   - corrections/additions by myself (Bert)
  218.   - corrections based on dbh comments
  219.   - removed change log of before 1st interim meeting.
  220.  
  221. [version 3.0] - this is the first ACM document (June 12 version).
  222.   - Modifications as agreed at 1st Interim Meeting
  223.     - Make Access Control Module a separate document
  224.     - Use viewName as index instead of an integer
  225.     - add notify_view
  226.     - use SnmpAdminString
  227.     - Other Modification
  228.     - use miId and securityModel
  229.     - add acmGroupTable
  230.     - add/rename Stats counters
  231.  
  232.  
  233.  
  234. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page  4]
  235.  
  236. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  237.  
  238.  
  239. 1.  Introduction
  240.  
  241.    The Architecture for describing Internet Management Frameworks
  242.    [SNMP-ARCH] describes that an SNMP engine is composed of:
  243.  
  244.      1) a Dispatcher
  245.      2) a Message Processing Subsystem,
  246.      3) a Security Subsystem, and
  247.      4) an Access Control Subsystem.
  248.  
  249.    Applications make use of the services of these subsystems.
  250.  
  251.    It is important to understand the SNMP architecture and its
  252.    terminology to understand where the View-based Access Control
  253.    Model described in this document fits into the architecture and
  254.    interacts with other subsystems within the architecture.  The
  255.    reader is expected to have read and understood the description and
  256.    terminology of the SNMP architecture, as defined in [SNMP-ARCH].
  257.  
  258.    The Access Control Subsystem of an SNMP engine has the
  259.    responsibility for checking whether a specific type of access
  260.    (read, write, notify) to a particular object (instance) is allowed.
  261.  
  262.    It is the purpose of this document to define a specific model of
  263.    the Access Control Subsystem, designated the View-based Access
  264.    Control Model. Note that this is not necessarily the only Access       |
  265.    Control Model.                                                         |
  266.  
  267.    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",    |
  268.    "SHOULD", "SHOULD NOT", "RECOMMENDED",  "MAY", and "OPTIONAL" in this  |
  269.    document are to be interpreted as described in [RFC2119].              |
  270.  
  271. 1.2.  Access Control
  272.  
  273.    Access Control occurs (either implicitly or explicitly) in an SNMP
  274.    entity when processing SNMP retrieval or modification request
  275.    messages from an SNMP entity.  For example a Command Responder
  276.    application applies Access Control when processing requests that it
  277.    received from a Command Generator application.  These requests
  278.    include these types of operations: GetRequest, GetNextRequest,
  279.    GetBulkRequest, and SetRequest operations.
  280.  
  281.    Access Control also occurs in an SNMP entity when an SNMP
  282.    notification message is generated (by a Notification Originator
  283.    application).  These notification messages include these types of
  284.    operations: InformRequest and SNMPv2-Trap operations.
  285.  
  286.    The View-based Access Control Model defines a set of services that
  287.    an application (such as a Command Responder or a Notification
  288.    Originator application) can use for checking access rights.
  289.    It is the responsibility of the application to make the proper
  290.  
  291.  
  292.  
  293. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page  5]
  294.  
  295. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  296.  
  297.  
  298.    service calls for access checking.
  299.  
  300. 1.3.  Local Configuration Datastore
  301.  
  302.    To implement the model described in this document, an SNMP entity
  303.    needs to retain information about access rights and policies.
  304.    This information is part of the SNMP engine's Local Configuration
  305.    Datastore (LCD). See [SNMP-ARCH] for the definition of LCD.
  306.  
  307.    In order to allow an SNMP entity's LCD to be remotely configured,
  308.    portions of the LCD need to be accessible as managed objects.
  309.    A MIB module, the View-based Access Control Model Configuration
  310.    MIB, which defines these managed object types is included in
  311.    this document.
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page  6]
  353.  
  354. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  355.  
  356.  
  357. 2.  Elements of the Model
  358.  
  359.    This section contains definitions to realize the access control
  360.    service provided by the View-based Access Control Model.
  361.  
  362.  
  363. 2.1.  Groups
  364.  
  365.    A group is a set of zero or more <securityModel, securityName>
  366.    tuples on whose behalf SNMP management objects can be accessed.
  367.    A group defines the access rights afforded to all securityNames
  368.    which belong to that group. The combination of a securityModel
  369.    and a securityName maps to at most one group.  A group is
  370.    identified by a groupName.
  371.  
  372.    The Access Control module assumes that the securityName has already
  373.    been authenticated as needed and provides no further authentication
  374.    of its own.
  375.  
  376.    The View-based Access Control Model uses the securityModel and the
  377.    securityName as inputs to the Access Control module when called to
  378.    check for access rights.  It determines the groupName as a function
  379.    of securityModel and securityName.
  380.  
  381.  
  382. 2.2.  securityLevel
  383.  
  384.    Different access rights for members of a group can be defined for
  385.    different levels of security, i.e., noAuthNoPriv, authNoPriv, and      |
  386.    authPriv. The securityLevel identifies the level of security that      |
  387.    will be assumed when checking for access rights.  See the SNMP         |
  388.    Architecture document [SNMP-ARCH] for a definition of securityLevel.   |
  389.  
  390.    The View-based Access Control Model requires that the securityLevel
  391.    is passed as input to the Access Control module when called to check
  392.    for access rights.
  393.  
  394.  
  395. 2.3.  Contexts
  396.  
  397.    An SNMP context is a collection of management information
  398.    accessible by an SNMP entity.  An item of management information
  399.    may exist in more than one context.  An SNMP entity potentially
  400.    has access to many contexts.  Details about the naming of
  401.    management information can be found in the SNMP Architecture
  402.    document [SNMP-ARCH].
  403.  
  404.    The View-based Access Control Model defines a vacmContextTable that
  405.    lists the locally available contexts by contextName.
  406.  
  407.  
  408.  
  409.  
  410.  
  411. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page  7]
  412.  
  413. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  414.  
  415.  
  416. 2.4.  MIB Views and View Families
  417.  
  418.    For security reasons, it is often valuable to be able to restrict
  419.    the access rights of some groups to only a subset of the management
  420.    information in the management domain.  To provide this capability,
  421.    access to a context is via a "MIB view" which details a specific
  422.    set of managed object types (and optionally, the specific instances
  423.    of object types) within that context.  For example, for a given
  424.    context, there will typically always be one MIB view which provides
  425.    access to all management information in that context, and often
  426.    there will be other MIB views each of which contains some subset of
  427.    the information.  So, the access allowed for a group can be
  428.    restricted in the desired manner by specifying its rights in terms
  429.    of the particular (subset) MIB view it can access within each
  430.    appropriate context.
  431.  
  432.    Since managed object types (and their instances) are identified via
  433.    the tree-like naming structure of ISO's OBJECT IDENTIFIERs
  434.    [ISO-ASN.1, RFC1902],  it is convenient to define a MIB view as the
  435.    combination of a set of "view subtrees", where each view subtree is
  436.    a subtree within the managed object naming tree.  Thus, a simple
  437.    MIB view (e.g., all managed objects within the Internet Network
  438.    Management Framework) can be defined as a single view subtree,
  439.    while more complicated MIB views (e.g., all information relevant to
  440.    a particular network interface) can be represented by the union of
  441.    multiple view subtrees.
  442.  
  443.    While any set of managed objects can be described by the union of
  444.    some number of view subtrees, situations can arise that would
  445.    require a very large number of view subtrees.  This could happen,
  446.    for example, when specifying all columns in one conceptual row of a
  447.    MIB table because they would appear in separate subtrees, one per
  448.    column, each with a very similar format.  Because the formats are
  449.    similar, the required set of subtrees can easily be aggregated into
  450.    one structure.  This structure is named a family of view subtrees
  451.    after the set of subtrees that it conceptually represents.  A family
  452.    of view subtrees can either be included or excluded from a MIB view.
  453.  
  454.  
  455. 2.4.1.  View Subtree
  456.  
  457.    A view subtree is the set of all MIB object instances which have a
  458.    common ASN.1 OBJECT IDENTIFIER prefix to their names.  A view
  459.    subtree is identified by the OBJECT IDENTIFIER value which is the
  460.    longest OBJECT IDENTIFIER prefix common to all (potential) MIB
  461.    object instances in that subtree.
  462.  
  463.  
  464. 2.4.2.  ViewTreeFamily
  465.  
  466.    A family of view subtrees is a pairing of an OBJECT IDENTIFIER value
  467.  
  468.  
  469.  
  470. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page  8]
  471.  
  472. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  473.  
  474.  
  475.    (called the family name) together with a bit string value (called
  476.    the family mask).  The family mask indicates which sub-identifiers
  477.    of the associated family name are significant to the family's
  478.    definition.
  479.  
  480.    For each possible managed object instance, that instance belongs to
  481.    a particular ViewTreeFamily if both of the following conditions
  482.    are true:
  483.  
  484.    - the OBJECT IDENTIFIER name of the managed object instance contains
  485.      at least as many sub-identifiers as does the family name, and
  486.  
  487.    - each sub-identifier in the OBJECT IDENTIFIER name of the managed
  488.      object instance matches the corresponding sub-identifier of the
  489.      family name whenever the corresponding bit of the associated
  490.      family mask is non-zero.
  491.  
  492.    When the configured value of the family mask is all ones, the view
  493.    subtree family is identical to the single view subtree identified
  494.    by the family name.
  495.  
  496.    When the configured value of the family mask is shorter than
  497.    required to perform the above test, its value is implicitly
  498.    extended with ones.  Consequently, a view subtree family having a
  499.    family mask of zero length always corresponds to a single view
  500.    subtree.
  501.  
  502.  
  503. 2.5.  Access Policy
  504.  
  505.    The View-based Access Control Model determines the access rights
  506.    of a group, representing zero or more securityNames which have
  507.    the same access rights.  For a particular context, identified by
  508.    contextName, to which a group, identified by groupName, has access
  509.    using a particular securityModel and securityLevel, that group's
  510.    access rights are given by a read-view, a write-view and a
  511.    notify-view.
  512.  
  513.    The read-view represents the set of object instances authorized for
  514.    the group when reading objects.  Reading objects occurs when
  515.    processing a retrieval (for example a GetRequest, GetNextRequest,
  516.    GetBulkRequest) operation.
  517.  
  518.    The write-view represents the set of object instances authorized for
  519.    the group when writing objects.  Writing objects occurs when
  520.    processing a write (for example a Set) operation.
  521.  
  522.    The notify-view represents the set of object instances authorized
  523.    for the group when sending objects in a notification, such as
  524.    when sending a notification (for example an Inform or SNMPv2-Trap).
  525.  
  526.  
  527.  
  528.  
  529. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page  9]
  530.  
  531. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  532.  
  533.  
  534. 3.  Elements of Procedure
  535.  
  536.    This section describes the procedures followed by an Access Control
  537.    module that implements the View-based Access Control Model when
  538.    checking access rights as requested by an application (for example
  539.    a Command Responder or a Notification Originator application).
  540.    The abstract service primitive is:
  541.  
  542.      statusInformation =          -- success or errorIndication
  543.          isAccessAllowed(
  544.              securityModel        -- Security Model in use
  545.              securityName         -- principal who wants access
  546.              securityLevel        -- Level of Security
  547.              viewType             -- read, write, or notify view
  548.              contextName          -- context containing variableName
  549.              variableName         -- OID for the managed object
  550.              )
  551.  
  552.    The abstract data elements are:
  553.  
  554.      statusInformation - one of the following:
  555.         accessAllowed  - a MIB view was found and access is granted.
  556.         notInView      - a MIB view was found but access is denied.
  557.                          The variableName is not in the configured
  558.                          MIB view for the specified viewType (e.g., in    |
  559.                          the relevant entry in the vacmAccessTable).
  560.         noSuchView     - no MIB view found because no view has been
  561.                          configured for specified viewType (e.g., in      |
  562.                          the relevant entry in the vacmAccessTable).
  563.         noSuchContext  - no MIB view found because of no entry in the
  564.                          vacmContextTable for specified contextName.
  565.         noGroupName    - no MIB view found because no entry has been
  566.                          configured in the vacmSecurityToGroupTable
  567.                          for the specified combination of
  568.                          securityModel and securityName.
  569.         noAccessEntry  - no MIB view found because no entry has been
  570.                          configured in the vacmAccessTable for the
  571.                          specified combination of contextName,
  572.                          groupName (from vacmSecurityToGroupTable),
  573.                          securityModel and securityLevel.
  574.         otherError     - failure, an undefined error occurred.
  575.      securityModel - Security Model under which access is requested.
  576.      securityName  - the principal on whose behalf access is requested.
  577.      securityLevel - Level of Security under which access is requested.
  578.      viewType      - view to be checked (read, write or notify).
  579.      contextName   - context in which access is requested.
  580.      variableName  - object instance to which access is requested.
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 10]
  589.  
  590. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  591.  
  592.  
  593. 3.1.  Overview  of isAccessAllowed Process
  594.  
  595.  The following picture shows how the decision for access control is       |
  596.  made by the View-based Access Control Model.                             |
  597.                                                                           |
  598.  +--------------------------------------------------------------------+
  599.  |                                                                    |
  600.  |      +-> securityModel -+                                          |
  601.  |      |   (a)            |                                          |
  602.  | who -+                  +-> groupName ----+                        |
  603.  | (1)  |                  |   (x)           |                        |
  604.  |      +-> securityName --+                 |                        |
  605.  |          (b)                              |                        |
  606.  |                                           |                        |
  607.  | where -> contextName ---------------------+                        |
  608.  | (2)      (e)                              |                        |
  609.  |                                           |                        |
  610.  |                                           |                        |
  611.  |      +-> securityModel -------------------+                        |
  612.  |      |   (a)                              |                        |
  613.  | how -+                                    +-> viewName -+          |
  614.  | (3)  |                                    |   (y)       |          |
  615.  |      +-> securityLevel -------------------+             |          |
  616.  |          (c)                              |             +-> yes/no |
  617.  |                                           |             | decision |
  618.  | why ---> viewType (read/write/notify) ----+             | (z)      |
  619.  | (4)      (d)                                            |          |
  620.  |                                                         |          |
  621.  | what --> object-type ------+                            |          |
  622.  | (5)      (m)               |                            |          |
  623.  |                            +-> variableName (OID) ------+          |
  624.  |                            |   (f)                                 |
  625.  | which -> object-instance --+                                       |
  626.  | (6)      (n)                                                       |
  627.  |                                                                    |
  628.  +--------------------------------------------------------------------+
  629.  
  630.  How the decision for isAccessAllowed is made.
  631.  
  632.  1) Inputs to the isAccessAllowed service are:                            |
  633.  
  634.     (a)       securityModel    -- Security Model in use
  635.     (b)       securityName     -- principal who wants to access
  636.     (c)       securityLevel    -- Level of Security
  637.     (d)       viewType         -- read, write, or notify view
  638.     (e)       contextName      -- context containing variableName
  639.     (f)       variableName     -- OID for the managed object
  640.                                -- this is made up of:                     |
  641.                                   - object-type (m)                       |
  642.                                   - object-instance (n)                   |
  643.  
  644.  
  645.  
  646.  
  647. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 11]
  648.  
  649. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  650.  
  651.  
  652.  2) The partial "who" (1), represented by the securityModel (a) and
  653.     the securityName (b), are used as the indices (a,b) into the
  654.     vacmSecurityToGroupTable to find a single entry that produces a
  655.     group, represented by groupName (x).
  656.  
  657.  3) The "where" (2), represented by the contextName (e), the "who",       |
  658.     represented by the groupName (x) from the previous step, and the
  659.     "how" (3), represented by securityModel (a) and securityLevel (c),
  660.     are used as indices (e,x,a,c) into the vacmAccessTable to find a
  661.     single entry that contains three MIB views.
  662.  
  663.  4) The "why" (4), represented by the viewType (d), is used to select     |
  664.     the proper MIB view, represented by a viewName (y), from the
  665.     vacmAccessEntry selected in the previous step. This viewName (y)
  666.     is an index into the vacmViewTreeFamilyTable and selects the set
  667.     of entries that define the variableNames which are included in
  668.     or excluded from the MIB view identified by the viewName (y).
  669.  
  670.  5) The "what" (5) type of management data and "which" (6) particular     |
  671.     instance, represented by the variableName (f), is then checked to
  672.     be in the MIB view or not, e.g., the yes/no decision (z).             |
  673.  
  674. 3.2.  Processing the isAccessAllowed Service Request
  675.  
  676.    This section describes the procedure followed by an Access Control
  677.    module that implements the View-based Access Control Model
  678.    whenever it receives an isAccessAllowed request.
  679.  
  680.    1) The vacmContextTable is consulted for information about
  681.       the SNMP context identified by the contextName.  If information
  682.       about this SNMP context is absent from the table, then an
  683.       errorIndication (noSuchContext) is returned to the calling
  684.       module.
  685.  
  686.    2) The vacmSecurityToGroupTable is consulted for mapping the
  687.       securityModel and securityName to a groupName.  If the
  688.       information about this combination is absent from the table,
  689.       then an errorIndication (noGroupName) is returned to the
  690.       calling module.
  691.  
  692.    3) The vacmAccessTable is consulted for information about the
  693.       groupName, contextName, securityModel and securityLevel.  If
  694.       information about this combination is absent from the table,
  695.       then an errorIndication (noAccessEntry) is returned to the
  696.       calling module.
  697.  
  698.    4) a) If the viewType is "read", then the read view is used for
  699.          checking access rights.
  700.  
  701.       b) If the viewType is "write", then the write view is used for
  702.          checking access rights.
  703.  
  704.  
  705.  
  706. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 12]
  707.  
  708. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  709.  
  710.  
  711.  
  712.       c) If the viewType is "notify", then the notify view is used
  713.          for checking access rights.
  714.  
  715.       If the view to be used is the empty view (zero length viewName)
  716.       then an errorIndication (noSuchView) is returned to the calling
  717.       module.
  718.  
  719.    5) a) If there is no view configured for the specified viewType,
  720.          then an errorIndication (noSuchView) is returned to the
  721.          calling module.
  722.  
  723.       b) If the specified variableName (object instance) is not in the
  724.          MIB view (see DESCRIPTION clause for vacmViewTreeFamilyTable
  725.          in section 4), then an errorIndication (notInView) is returned
  726.          to the calling module.
  727.  
  728.          Otherwise,
  729.  
  730.       c) The specified variableName is in the MIB view.
  731.          A statusInformation of success (accessAllowed) is returned
  732.          to the calling module.
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 13]
  766.  
  767. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  768.  
  769.  
  770. 4.  Definitions
  771.  
  772. SNMP-VIEW-BASED-ACM-MIB DEFINITIONS ::= BEGIN
  773.  
  774. IMPORTS
  775.     MODULE-COMPLIANCE, OBJECT-GROUP       FROM SNMPv2-CONF
  776.     MODULE-IDENTITY, OBJECT-TYPE,
  777.     snmpModules                           FROM SNMPv2-SMI
  778.     TestAndIncr,
  779.     RowStatus, StorageType                FROM SNMPv2-TC
  780.     SnmpAdminString,
  781.     SnmpSecurityLevel,
  782.     SnmpSecurityModel                     FROM SNMP-FRAMEWORK-MIB;
  783.  
  784. snmpVacmMIB       MODULE-IDENTITY
  785.     LAST-UPDATED "9709290000Z"            -- 29 Sep 1997, midnight        |
  786.     ORGANIZATION "SNMPv3 Working Group"
  787.     CONTACT-INFO "WG-email:   snmpv3@tis.com
  788.                   Subscribe:  majordomo@tis.com
  789.                               In message body:  subscribe snmpv3
  790.  
  791.                   Chair:      Russ Mundy
  792.                               Trusted Information Systems
  793.                   postal:     3060 Washington Rd
  794.                               Glenwood MD 21738
  795.                               USA
  796.                   email:      mundy@tis.com
  797.                   phone:      +1-301-854-6889
  798.  
  799.                   Co-editor:  Bert Wijnen
  800.                               IBM T.J. Watson Research
  801.                   postal:     Schagen 33
  802.                               3461 GL Linschoten
  803.                               Netherlands
  804.                   email:      wijnen@vnet.ibm.com
  805.                   phone:      +31-348-432-794
  806.  
  807.                   Co-editor:  Randy Presuhn
  808.                               BMC Software, Inc
  809.                   postal:     1190 Saratoga Avenue, Suite 130
  810.                               San Jose, CA  95129-3433
  811.                               USA
  812.                   email:      rpresuhn@bmc.com
  813.                   phone:      +1-408-556-0720
  814.  
  815.                   Co-editor:  Keith McCloghrie
  816.                               Cisco Systems, Inc.
  817.                   postal:     170 West Tasman Drive
  818.                               San Jose, CA  95134-1706
  819.                               USA
  820.                   email:      kzm@cisco.com
  821.  
  822.  
  823.  
  824. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 14]
  825.  
  826. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  827.  
  828.  
  829.                   phone:      +1-408-526-5260
  830.                  "
  831.     DESCRIPTION  "The management information definitions for the
  832.                   View-based Access Control Model for SNMP.
  833.                  "
  834.     ::= { snmpModules 10 }    -- to be verified with IANA
  835.  
  836. -- Administrative assignments ****************************************
  837.  
  838. vacmMIBObjects      OBJECT IDENTIFIER ::= { snmpVacmMIB 1 }
  839. vacmMIBConformance  OBJECT IDENTIFIER ::= { snmpVacmMIB 2 }
  840.  
  841. -- Information about Local Contexts **********************************
  842.  
  843. vacmContextTable OBJECT-TYPE
  844.     SYNTAX       SEQUENCE OF VacmContextEntry
  845.     MAX-ACCESS   not-accessible
  846.     STATUS       current
  847.     DESCRIPTION "The table of locally available contexts.
  848.  
  849.                  This table provides information to SNMP Command
  850.                  Generator applications so that they can properly
  851.                  configure the vacmAccessTable to control access to
  852.                  all contexts at the SNMP entity.
  853.  
  854.                  This table may change dynamically if the SNMP entity
  855.                  allows that contexts are added/deleted dynamically
  856.                  (for instance when its configuration changes). Such
  857.                  changes would happen only if the management
  858.                  instrumentation at that SNMP entity recognizes more
  859.                  (or fewer) contexts.
  860.  
  861.                  The presence of entries in this table and of entries
  862.                  in the vacmAccessTable are independent.  That is, a
  863.                  context identified by an entry in this table is not      |
  864.                  necessarily referenced by any entries in the             |
  865.                  vacmAccessTable; and the context(s) referenced by an
  866.                  entry in the vacmAccessTable does not necessarily        |
  867.                  currently exist and thus need not be identified by an    |
  868.                  entry in this table.                                     |
  869.  
  870.                  This table must be made accessible via the default
  871.                  context so that Command Responder applications have
  872.                  a standard way of retrieving the information.
  873.  
  874.                  This table is read-only. It cannot be configured via
  875.                  SNMP.
  876.                 "
  877.     ::= { vacmMIBObjects 1 }
  878.  
  879. vacmContextEntry OBJECT-TYPE
  880.  
  881.  
  882.  
  883. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 15]
  884.  
  885. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  886.  
  887.  
  888.     SYNTAX       VacmContextEntry
  889.     MAX-ACCESS   not-accessible
  890.     STATUS       current
  891.     DESCRIPTION "Information about a particular context."
  892.     INDEX       {
  893.                   vacmContextName
  894.                 }
  895.     ::= { vacmContextTable 1 }
  896.  
  897. VacmContextEntry ::= SEQUENCE
  898.     {
  899.         vacmContextName SnmpAdminString
  900.     }
  901.  
  902. vacmContextName  OBJECT-TYPE
  903.     SYNTAX       SnmpAdminString (SIZE(0..32))
  904.     MAX-ACCESS   read-only
  905.     STATUS       current
  906.     DESCRIPTION "A human readable name identifying a particular
  907.                  context at a particular SNMP entity.
  908.                                                                           |
  909.                  The empty contextName (zero length) represents the       |
  910.                  default context.                                         |
  911.                 "
  912.     ::= { vacmContextEntry 1 }
  913.  
  914. -- Information about Groups ******************************************
  915.  
  916. vacmSecurityToGroupTable OBJECT-TYPE
  917.     SYNTAX       SEQUENCE OF VacmSecurityToGroupEntry
  918.     MAX-ACCESS   not-accessible
  919.     STATUS       current
  920.     DESCRIPTION "This table maps a combination of securityModel and
  921.                  securityName into a groupName which is used to define
  922.                  an access control policy for a group of principals.
  923.                 "
  924.     ::= { vacmMIBObjects 2 }
  925.  
  926. vacmSecurityToGroupEntry OBJECT-TYPE
  927.     SYNTAX       VacmSecurityToGroupEntry
  928.     MAX-ACCESS   not-accessible
  929.     STATUS       current
  930.     DESCRIPTION "An entry in this table maps the combination of a
  931.                  securityModel and securityName into a groupName.
  932.                 "
  933.     INDEX       {
  934.                   vacmSecurityModel,
  935.                   vacmSecurityName
  936.                 }
  937.     ::= { vacmSecurityToGroupTable 1 }
  938.  
  939.  
  940.  
  941.  
  942. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 16]
  943.  
  944. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  945.  
  946.  
  947. VacmSecurityToGroupEntry ::= SEQUENCE
  948.     {
  949.         vacmSecurityModel               SnmpSecurityModel,
  950.         vacmSecurityName                SnmpAdminString,
  951.         vacmGroupName                   SnmpAdminString,
  952.         vacmSecurityToGroupStorageType  StorageType,
  953.         vacmSecurityToGroupStatus       RowStatus
  954.     }
  955.  
  956. vacmSecurityModel OBJECT-TYPE
  957.     SYNTAX       SnmpSecurityModel(1..2147483647)                         |
  958.     MAX-ACCESS   not-accessible
  959.     STATUS       current
  960.     DESCRIPTION "The Security Model, by which the vacmSecurityName
  961.                  referenced by this entry is provided.
  962.  
  963.                  Note, this object may not take the 'any' (0) value.      |
  964.                 "
  965.     ::= { vacmSecurityToGroupEntry 1 }
  966.  
  967. vacmSecurityName OBJECT-TYPE
  968.     SYNTAX       SnmpAdminString (SIZE(1..32))
  969.     MAX-ACCESS   not-accessible
  970.     STATUS       current
  971.     DESCRIPTION "The securityName for the principal, represented in a
  972.                  Security Model independent format, which is mapped by
  973.                  this entry to a groupName.
  974.  
  975.                  The securityName for a principal represented in a
  976.                  Security Model independent format.
  977.                 "
  978.     ::= { vacmSecurityToGroupEntry 2 }
  979.  
  980. vacmGroupName    OBJECT-TYPE
  981.     SYNTAX       SnmpAdminString (SIZE(1..32))
  982.     MAX-ACCESS   read-create
  983.     STATUS       current
  984.     DESCRIPTION "The name of the group to which this entry (e.g., the     |
  985.                  combination of securityModel and securityName)
  986.                  belongs.
  987.  
  988.                  This groupName is used as index into the
  989.                  vacmAccessTable to select an access control policy.
  990.                 "
  991.     ::= { vacmSecurityToGroupEntry 3 }
  992.  
  993. vacmSecurityToGroupStorageType OBJECT-TYPE
  994.     SYNTAX       StorageType
  995.     MAX-ACCESS   read-create
  996.     STATUS       current
  997.     DESCRIPTION "The storage type for this conceptual row.
  998.  
  999.  
  1000.  
  1001. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 17]
  1002.  
  1003. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1004.  
  1005.  
  1006.  
  1007.                  Conceptual rows having the value 'permanent' need not
  1008.                  allow write-access to any columnar objects in the row.
  1009.                 "
  1010.     DEFVAL      { nonVolatile }
  1011.     ::= { vacmSecurityToGroupEntry 4 }
  1012.  
  1013. vacmSecurityToGroupStatus OBJECT-TYPE
  1014.     SYNTAX       RowStatus
  1015.     MAX-ACCESS   read-create
  1016.     STATUS       current
  1017.     DESCRIPTION "The status of this conceptual row.
  1018.  
  1019.                  The  RowStatus TC [RFC1903] requires that this
  1020.                  DESCRIPTION clause states under which circumstances
  1021.                  other objects in this row can be modified:
  1022.  
  1023.                  The value of this object has no effect on whether
  1024.                  other objects in this conceptual row can be modified.
  1025.                 "
  1026.     ::= { vacmSecurityToGroupEntry 5 }
  1027.  
  1028. -- Information about Access Rights ***********************************
  1029.  
  1030. vacmAccessTable  OBJECT-TYPE
  1031.     SYNTAX       SEQUENCE OF VacmAccessEntry
  1032.     MAX-ACCESS   not-accessible
  1033.     STATUS       current
  1034.     DESCRIPTION "The table of access rights for groups.
  1035.  
  1036.                  Each entry is indexed by a contextPrefix, a groupName
  1037.                  a securityModel and a securityLevel.  To determine
  1038.                  whether access is allowed, one entry from this table
  1039.                  needs to be selected and the proper viewName from that
  1040.                  entry must be used for access control checking.
  1041.  
  1042.                  To select the proper entry, follow these steps:          |
  1043.                                                                           |
  1044.                  1) the set of possible matches is formed by the          |
  1045.                     intersection of the following sets of entries:        |
  1046.                       the set of entries with identical vacmGroupName     |
  1047.                       the union of these two sets:                        |
  1048.                        - the set with identical vacmAccessContextPrefix   |
  1049.                        - the set of entries with vacmAccessContextMatch   |
  1050.                          value of 'prefix' and matching                   |
  1051.                          vacmAccessContextPrefix                          |
  1052.                       intersected with the union of these two sets:       |
  1053.                        - the set of entries with identical                |
  1054.                          vacmSecurityModel                                |
  1055.                        - the set of entries with vacmSecurityModel        |
  1056.                          value of 'any'                                   |
  1057.  
  1058.  
  1059.  
  1060. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 18]
  1061.  
  1062. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1063.  
  1064.  
  1065.                       intersected with the set of entries with            |
  1066.                       vacmAccessSecurityLevel value less than or equal    2
  1067.                       to the requested securityLevel                      2
  1068.                                                                           |
  1069.                  2) if this set has only one member, we're done           |
  1070.                     otherwise, it comes down to deciding how to weight    |
  1071.                     the preferences between ContextPrefixes,              |
  1072.                     SecurityModels, and SecurityLevels as follows:        |
  1073.                     a) if the subset of entries with identical            |
  1074.                        securityModels is not empty, discard the rest.     |
  1075.                     b) if the subset of entries with identical            |
  1076.                        vacmAccessContextPrefix is not empty,              |
  1077.                        discard the rest                                   |
  1078.                     c) discard all entries with ContextPrefixes shorter   |
  1079.                        than the longest one remaining in the set          |
  1080.                     d) select the entry with the highest securityLevel    |
  1081.                                                                           |
  1082.                  Please note that for securityLevel noAuthNoPriv, all     |
  1083.                  groups are really equivalent since the assumption that   |
  1084.                  the securityName has been authenticated does not hold.   |
  1085.                 "
  1086.     ::= { vacmMIBObjects 4 }
  1087.  
  1088. vacmAccessEntry  OBJECT-TYPE
  1089.     SYNTAX       VacmAccessEntry
  1090.     MAX-ACCESS   not-accessible
  1091.     STATUS       current
  1092.     DESCRIPTION "An access right configured in the Local Configuration
  1093.                  Datastore (LCD) authorizing access to an SNMP context.
  1094.                 "
  1095.     INDEX       { vacmGroupName,
  1096.                   vacmAccessContextPrefix,
  1097.                   vacmAccessSecurityModel,                                |
  1098.                   vacmAccessSecurityLevel
  1099.                 }
  1100.     ::= { vacmAccessTable 1 }
  1101.  
  1102. VacmAccessEntry ::= SEQUENCE
  1103.     {
  1104.         vacmAccessContextPrefix    SnmpAdminString,
  1105.         vacmAccessSecurityModel    SnmpSecurityModel,                     |
  1106.         vacmAccessSecurityLevel    SnmpSecurityLevel,
  1107.         vacmAccessContextMatch     INTEGER,
  1108.         vacmAccessReadViewName     SnmpAdminString,
  1109.         vacmAccessWriteViewName    SnmpAdminString,
  1110.         vacmAccessNotifyViewName   SnmpAdminString,
  1111.         vacmAccessStorageType      StorageType,
  1112.         vacmAccessStatus           RowStatus
  1113.     }
  1114.  
  1115. vacmAccessContextPrefix OBJECT-TYPE
  1116.  
  1117.  
  1118.  
  1119. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 19]
  1120.  
  1121. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1122.  
  1123.  
  1124.     SYNTAX       SnmpAdminString (SIZE(0..32))
  1125.     MAX-ACCESS   not-accessible
  1126.     STATUS       current
  1127.     DESCRIPTION "In order to gain the access rights allowed by this
  1128.                  conceptual row, a contextName must match exactly
  1129.                  (if the value of vacmAccessContextMatch is 'exact')
  1130.                  or partially (if the value of vacmAccessContextMatch
  1131.                  is 'prefix') to the value of the instance of this
  1132.                  object.
  1133.                 "
  1134.     ::= { vacmAccessEntry 1 }
  1135.  
  1136. vacmAccessSecurityModel OBJECT-TYPE                                       |
  1137.     SYNTAX       SnmpSecurityModel                                        |
  1138.     MAX-ACCESS   not-accessible                                           |
  1139.     STATUS       current                                                  |
  1140.     DESCRIPTION "In order to gain the access rights allowed by this       |
  1141.                  conceptual row, this securityModel must be in use.       |
  1142.                 "                                                         |
  1143.     ::= { vacmAccessEntry 2 }                                             |
  1144.  
  1145. vacmAccessSecurityLevel OBJECT-TYPE
  1146.     SYNTAX       SnmpSecurityLevel
  1147.     MAX-ACCESS   not-accessible
  1148.     STATUS       current
  1149.     DESCRIPTION "The minimum level of security required in order to
  1150.                  gain the access rights allowed by this conceptual
  1151.                  row.  A securityLevel of noAuthNoPriv is less than
  1152.                  authNoPriv which in turn is less than authPriv.
  1153.  
  1154.                  If multiple entries are equally indexed except for
  1155.                  this vacmAccessSecurityLevel index, then the entry
  1156.                  which has the highest value for
  1157.                  vacmAccessSecurityLevel wins.
  1158.                 "
  1159.     ::= { vacmAccessEntry 3 }                                             |
  1160.  
  1161. vacmAccessContextMatch OBJECT-TYPE
  1162.     SYNTAX       INTEGER
  1163.                 { exact (1), -- exact match of prefix and contextName
  1164.                   prefix (2) -- Only match to the prefix
  1165.                 }
  1166.     MAX-ACCESS   read-create
  1167.     STATUS       current
  1168.     DESCRIPTION "If the value of this object is exact(1), then all
  1169.                  rows where the contextName exactly matches
  1170.                  vacmAccessContextPrefix are selected.
  1171.  
  1172.                  If the value of this object is prefix(2), then all
  1173.                  rows where the contextName whose starting octets
  1174.                  exactly match vacmAccessContextPrefix are selected.
  1175.  
  1176.  
  1177.  
  1178. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 20]
  1179.  
  1180. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1181.  
  1182.  
  1183.                  This allows for a simple form of wildcarding.
  1184.                  See also the example in the DESCRIPTION clause of
  1185.                  the vacmAccessTable above.
  1186.                 "
  1187.     ::= { vacmAccessEntry 4 }                                             |
  1188.  
  1189. vacmAccessReadViewName OBJECT-TYPE
  1190.     SYNTAX       SnmpAdminString (SIZE(0..32))
  1191.     MAX-ACCESS   read-create
  1192.     STATUS       current
  1193.     DESCRIPTION "The value of an instance of this object identifies
  1194.                  the MIB view of the SNMP context to which this
  1195.                  conceptual row authorizes read access.
  1196.  
  1197.                  The identified MIB view is that one for which the
  1198.                  vacmViewTreeFamilyViewName has the same value as the
  1199.                  instance of this object; if the value is the empty
  1200.                  string or if there is no active MIB view having this
  1201.                  value of vacmViewTreeFamilyViewName, then no access
  1202.                  is granted.
  1203.                 "
  1204.     DEFVAL      { ''H }   -- the empty string
  1205.     ::= { vacmAccessEntry 5 }                                             |
  1206.  
  1207. vacmAccessWriteViewName OBJECT-TYPE
  1208.     SYNTAX       SnmpAdminString (SIZE(0..32))
  1209.     MAX-ACCESS   read-create
  1210.     STATUS       current
  1211.     DESCRIPTION "The value of an instance of this object identifies
  1212.                  the MIB view of the SNMP context to which this
  1213.                  conceptual row authorizes write access.
  1214.  
  1215.                  The identified MIB view is that one for which the
  1216.                  vacmViewTreeFamilyViewName has the same value as the
  1217.                  instance of this object; if the value is the empty
  1218.                  string or if there is no active MIB view having this
  1219.                  value of vacmViewTreeFamilyViewName, then no access
  1220.                  is granted.
  1221.                 "
  1222.     DEFVAL      { ''H }   -- the empty string
  1223.     ::= { vacmAccessEntry 6 }                                             |
  1224.  
  1225. vacmAccessNotifyViewName OBJECT-TYPE
  1226.     SYNTAX       SnmpAdminString (SIZE(0..32))
  1227.     MAX-ACCESS   read-create
  1228.     STATUS       current
  1229.     DESCRIPTION "The value of an instance of this object identifies
  1230.                  the MIB view of the SNMP context to which this
  1231.                  conceptual row authorizes access for notifications.
  1232.  
  1233.                  The identified MIB view is that one for which the
  1234.  
  1235.  
  1236.  
  1237. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 21]
  1238.  
  1239. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1240.  
  1241.  
  1242.                  vacmViewTreeFamilyViewName has the same value as the
  1243.                  instance of this object; if the value is the empty
  1244.                  string or if there is no active MIB view having this
  1245.                  value of vacmViewTreeFamilyViewName, then no access
  1246.                  is granted.
  1247.                 "
  1248.     DEFVAL      { ''H }   -- the empty string
  1249.     ::= { vacmAccessEntry 7 }                                             |
  1250.  
  1251. vacmAccessStorageType OBJECT-TYPE
  1252.     SYNTAX       StorageType
  1253.     MAX-ACCESS   read-create
  1254.     STATUS       current
  1255.     DESCRIPTION "The storage type for this conceptual row.
  1256.  
  1257.                  Conceptual rows having the value 'permanent' need not
  1258.                  allow write-access to any columnar objects in the row.
  1259.                 "
  1260.     DEFVAL      { nonVolatile }
  1261.     ::= { vacmAccessEntry 8 }                                             |
  1262.  
  1263. vacmAccessStatus OBJECT-TYPE
  1264.     SYNTAX       RowStatus
  1265.     MAX-ACCESS   read-create
  1266.     STATUS       current
  1267.     DESCRIPTION "The status of this conceptual row.
  1268.  
  1269.                  The  RowStatus TC [RFC1903] requires that this
  1270.                  DESCRIPTION clause states under which circumstances
  1271.                  other objects in this row can be modified:
  1272.  
  1273.                  The value of this object has no effect on whether
  1274.                  other objects in this conceptual row can be modified.
  1275.                 "
  1276.     ::= { vacmAccessEntry 9 }                                             |
  1277.  
  1278. -- Information about MIB views ***************************************
  1279.  
  1280. -- Support for instance-level granularity is optional.                    |
  1281. --                                                                        |
  1282. -- In some implementations, instance-level access control                 |
  1283. -- granularity may come at a high performance cost.  Managers             |
  1284. -- should avoid requesting such configurations unnecessarily.             |
  1285.  
  1286. vacmMIBViews     OBJECT IDENTIFIER ::= { vacmMIBObjects 5 }
  1287.  
  1288. vacmViewSpinLock OBJECT-TYPE
  1289.     SYNTAX       TestAndIncr
  1290.     MAX-ACCESS   read-write
  1291.     STATUS       current
  1292.     DESCRIPTION "An advisory lock used to allow cooperating SNMP
  1293.  
  1294.  
  1295.  
  1296. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 22]
  1297.  
  1298. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1299.  
  1300.  
  1301.                  Command Generator applications to coordinate their
  1302.                  use of the Set operation in creating or modifying        |
  1303.                  views.                                                   |
  1304.  
  1305.                  When creating a new view or altering an existing
  1306.                  view, it is important to understand the potential
  1307.                  interactions with other uses of the view.  The
  1308.                  vacmViewSpinLock should be retrieved.  The name of
  1309.                  the view to be created should be determined to be
  1310.                  unique by the SNMP Command Generator application by
  1311.                  consulting the vacmViewTreeFamilyTable.  Finally,
  1312.                  the named view may be created (Set), including the
  1313.                  advisory lock.
  1314.                  If another SNMP Command Generator application has
  1315.                  altered the views in the meantime, then the spin
  1316.                  lock's value will have changed, and so this creation
  1317.                  will fail because it will specify the wrong value for
  1318.                  the spin lock.
  1319.  
  1320.                  Since this is an advisory lock, the use of this lock
  1321.                  is not enforced.
  1322.                 "
  1323.     ::= { vacmMIBViews 1 }
  1324.  
  1325. vacmViewTreeFamilyTable OBJECT-TYPE
  1326.     SYNTAX       SEQUENCE OF VacmViewTreeFamilyEntry
  1327.     MAX-ACCESS   not-accessible
  1328.     STATUS       current
  1329.     DESCRIPTION "Locally held information about families of subtrees
  1330.                  within MIB views.
  1331.  
  1332.                  Each MIB view is defined by two sets of view subtrees:
  1333.                    - the included view subtrees, and
  1334.                    - the excluded view subtrees.
  1335.                  Every such view subtree, both the included and the
  1336.                  excluded ones, is defined in this table.
  1337.  
  1338.                  To determine if a particular object instance is in
  1339.                  a particular MIB view, compare the object instance's
  1340.                  OBJECT IDENTIFIER with each of the MIB view's active
  1341.                  entries in this table.  If none match, then the
  1342.                  object instance is not in the MIB view.  If one or
  1343.                  more match, then the object instance is included in,
  1344.                  or excluded from, the MIB view according to the
  1345.                  value of vacmViewTreeFamilyType in the entry whose
  1346.                  value of vacmViewTreeFamilySubtree has the most
  1347.                  sub-identifiers.  If multiple entries match and have
  1348.                  the same number of sub-identifiers, then the
  1349.                  lexicographically greatest instance of
  1350.                  vacmViewTreeFamilyType determines the inclusion or
  1351.                  exclusion.
  1352.  
  1353.  
  1354.  
  1355. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 23]
  1356.  
  1357. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1358.  
  1359.  
  1360.  
  1361.                  An object instance's OBJECT IDENTIFIER X matches an
  1362.                  active entry in this table when the number of
  1363.                  sub-identifiers in X is at least as many as in the
  1364.                  value of vacmViewTreeFamilySubtree for the entry,
  1365.                  and each sub-identifier in the value of
  1366.                  vacmViewTreeFamilySubtree matches its corresponding
  1367.                  sub-identifier in X.  Two sub-identifiers match
  1368.                  either if the corresponding bit of the value of
  1369.                  vacmViewTreeFamilyMask for the entry is zero (the
  1370.                  'wild card' value), or if they are equal.
  1371.  
  1372.                  A 'family' of subtrees is the set of subtrees defined
  1373.                  by a particular combination of values of
  1374.                  vacmViewTreeFamilySubtree and vacmViewTreeFamilyMask.
  1375.                  In the case where no 'wild card' is defined in the
  1376.                  vacmViewTreeFamilyMask, the family of subtrees reduces
  1377.                  to a single subtree.
  1378.  
  1379.                  When creating or changing MIB views, an SNMP Command
  1380.                  Generator application should utilize the
  1381.                  vacmViewSpinLock to try to avoid collisions. See
  1382.                  DESCRIPTION clause of vacmViewSpinLock.
  1383.  
  1384.                  When creating MIB views, it is strongly advised that
  1385.                  first the 'excluded' vacmViewTreeFamilyEntries are
  1386.                  created and then the 'included' entries.
  1387.  
  1388.                  When deleting MIB views, it is strongly advised that
  1389.                  first the 'included' vacmViewTreeFamilyEntries are
  1390.                  deleted and then the 'excluded' entries.
  1391.                                                                           |
  1392.                  If a create for an entry for instance-level access       |
  1393.                  control is received and the implementation does not      |
  1394.                  support instance-level granularity, then an              |
  1395.                  inconsistentName error must be returned.                 |
  1396.                 "
  1397.     ::= { vacmMIBViews 2 }
  1398.  
  1399. vacmViewTreeFamilyEntry OBJECT-TYPE
  1400.     SYNTAX       VacmViewTreeFamilyEntry
  1401.     MAX-ACCESS   not-accessible
  1402.     STATUS       current
  1403.     DESCRIPTION "Information on a particular family of view subtrees
  1404.                  included in or excluded from a particular SNMP
  1405.                  context's MIB view.
  1406.  
  1407.                  Implementations must not restrict the number of
  1408.                  families of view subtrees for a given MIB view,
  1409.                  except as dictated by resource constraints on the
  1410.                  overall number of entries in the
  1411.  
  1412.  
  1413.  
  1414. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 24]
  1415.  
  1416. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1417.  
  1418.  
  1419.                  vacmViewTreeFamilyTable.
  1420.  
  1421.                  If no conceptual rows exist in this table for a given    |
  1422.                  MIB view (viewName), that view may be thought of as      |
  1423.                  consisting of the empty set of view subtrees.            |
  1424.                 "
  1425.     INDEX       { vacmViewTreeFamilyViewName,
  1426.                   vacmViewTreeFamilySubtree
  1427.                 }
  1428.     ::= { vacmViewTreeFamilyTable 1 }
  1429.  
  1430. VacmViewTreeFamilyEntry ::= SEQUENCE
  1431.     {
  1432.         vacmViewTreeFamilyViewName     SnmpAdminString,
  1433.         vacmViewTreeFamilySubtree      OBJECT IDENTIFIER,
  1434.         vacmViewTreeFamilyMask         OCTET STRING,
  1435.         vacmViewTreeFamilyType         INTEGER,
  1436.         vacmViewTreeFamilyStorageType  StorageType,
  1437.         vacmViewTreeFamilyStatus       RowStatus
  1438.     }
  1439.  
  1440. vacmViewTreeFamilyViewName OBJECT-TYPE
  1441.     SYNTAX       SnmpAdminString (SIZE(1..32))
  1442.     MAX-ACCESS   not-accessible
  1443.     STATUS       current
  1444.     DESCRIPTION "The human readable name for a family of view subtrees.
  1445.                 "
  1446.     ::= { vacmViewTreeFamilyEntry 1 }
  1447.  
  1448. vacmViewTreeFamilySubtree OBJECT-TYPE
  1449.     SYNTAX       OBJECT IDENTIFIER
  1450.     MAX-ACCESS   not-accessible
  1451.     STATUS       current
  1452.     DESCRIPTION "The MIB subtree which when combined with the
  1453.                  corresponding instance of vacmViewTreeFamilyMask
  1454.                  defines a family of view subtrees.
  1455.                 "
  1456.     ::= { vacmViewTreeFamilyEntry 2 }
  1457.  
  1458. vacmViewTreeFamilyMask OBJECT-TYPE
  1459.     SYNTAX       OCTET STRING (SIZE (0..16))
  1460.     MAX-ACCESS   read-create
  1461.     STATUS       current
  1462.     DESCRIPTION "The bit mask which, in combination with the
  1463.                  corresponding instance of vacmViewTreeFamilySubtree,
  1464.                  defines a family of view subtrees.
  1465.  
  1466.                  Each bit of this bit mask corresponds to a
  1467.                  sub-identifier of vacmViewTreeFamilySubtree, with the
  1468.                  most significant bit of the i-th octet of this octet
  1469.                  string value (extended if necessary, see below)
  1470.  
  1471.  
  1472.  
  1473. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 25]
  1474.  
  1475. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1476.  
  1477.  
  1478.                  corresponding to the (8*i - 7)-th sub-identifier, and
  1479.                  the least significant bit of the i-th octet of this
  1480.                  octet string corresponding to the (8*i)-th
  1481.                  sub-identifier, where i is in the range 1 through 16.
  1482.  
  1483.                  Each bit of this bit mask specifies whether or not
  1484.                  the corresponding sub-identifiers must match when
  1485.                  determining if an OBJECT IDENTIFIER is in this
  1486.                  family of view subtrees; a '1' indicates that an
  1487.                  exact match must occur; a '0' indicates 'wild card',
  1488.                  i.e., any sub-identifier value matches.
  1489.  
  1490.                  Thus, the OBJECT IDENTIFIER X of an object instance
  1491.                  is contained in a family of view subtrees if, for
  1492.                  each sub-identifier of the value of
  1493.                  vacmViewTreeFamilySubtree, either:
  1494.  
  1495.                    the i-th bit of vacmViewTreeFamilyMask is 0, or
  1496.  
  1497.                    the i-th sub-identifier of X is equal to the i-th
  1498.                    sub-identifier of the value of
  1499.                    vacmViewTreeFamilySubtree.
  1500.  
  1501.                  If the value of this bit mask is M bits long and
  1502.                  there are more than M sub-identifiers in the
  1503.                  corresponding instance of vacmViewTreeFamilySubtree,
  1504.                  then the bit mask is extended with 1's to be the
  1505.                  required length.
  1506.  
  1507.                  Note that when the value of this object is the
  1508.                  zero-length string, this extension rule results in
  1509.                  a mask of all-1's being used (i.e., no 'wild card'),
  1510.                  and the family of view subtrees is the one view
  1511.                  subtree uniquely identified by the corresponding
  1512.                  instance of vacmViewTreeFamilySubtree.
  1513.  
  1514.                  Note that masks of length greater than zero length
  1515.                  do not need to be supported. In this case this           |
  1516.                  object is made read-only.                                |
  1517.                 "
  1518.     DEFVAL      { ''H }
  1519.     ::= { vacmViewTreeFamilyEntry 3 }
  1520.  
  1521. vacmViewTreeFamilyType OBJECT-TYPE
  1522.     SYNTAX       INTEGER  { included(1), excluded(2) }
  1523.     MAX-ACCESS   read-create
  1524.     STATUS       current
  1525.     DESCRIPTION "Indicates whether the corresponding instances of
  1526.                  vacmViewTreeFamilySubtree and vacmViewTreeFamilyMask
  1527.                  define a family of view subtrees which is included in
  1528.                  or excluded from the MIB view.
  1529.  
  1530.  
  1531.  
  1532. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 26]
  1533.  
  1534. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1535.  
  1536.  
  1537.                 "
  1538.     DEFVAL      { included }
  1539.     ::= { vacmViewTreeFamilyEntry 4 }
  1540.  
  1541. vacmViewTreeFamilyStorageType OBJECT-TYPE
  1542.     SYNTAX       StorageType
  1543.     MAX-ACCESS   read-create
  1544.     STATUS       current
  1545.     DESCRIPTION "The storage type for this conceptual row.
  1546.  
  1547.                  Conceptual rows having the value 'permanent' need not
  1548.                  allow write-access to any columnar objects in the row.
  1549.                 "
  1550.     DEFVAL      { nonVolatile }
  1551.     ::= { vacmViewTreeFamilyEntry 5 }
  1552.  
  1553. vacmViewTreeFamilyStatus OBJECT-TYPE
  1554.     SYNTAX       RowStatus
  1555.     MAX-ACCESS   read-create
  1556.     STATUS       current
  1557.     DESCRIPTION "The status of this conceptual row.
  1558.  
  1559.                  The  RowStatus TC [RFC1903] requires that this
  1560.                  DESCRIPTION clause states under which circumstances
  1561.                  other objects in this row can be modified:
  1562.  
  1563.                  The value of this object has no effect on whether
  1564.                  other objects in this conceptual row can be modified.
  1565.                 "
  1566.     ::= { vacmViewTreeFamilyEntry 6 }
  1567.  
  1568. -- Conformance information *******************************************
  1569.  
  1570. vacmMIBCompliances  OBJECT IDENTIFIER ::= { vacmMIBConformance 1 }
  1571. vacmMIBGroups       OBJECT IDENTIFIER ::= { vacmMIBConformance 2 }
  1572.  
  1573. -- Compliance statements *********************************************
  1574.  
  1575. vacmMIBCompliance MODULE-COMPLIANCE
  1576.     STATUS       current
  1577.     DESCRIPTION "The compliance statement for SNMP engines which
  1578.                  implement the SNMP View-based Access Control Model
  1579.                  configuration MIB.
  1580.                 "
  1581.     MODULE -- this module
  1582.         MANDATORY-GROUPS { vacmBasicGroup }
  1583.  
  1584.         OBJECT        vacmAccessContextMatch
  1585.         MIN-ACCESS    read-only
  1586.         DESCRIPTION  "Write access is not required."
  1587.  
  1588.  
  1589.  
  1590.  
  1591. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 27]
  1592.  
  1593. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1594.  
  1595.  
  1596.         OBJECT        vacmAccessReadViewName
  1597.         MIN-ACCESS    read-only
  1598.         DESCRIPTION  "Write access is not required."
  1599.  
  1600.         OBJECT        vacmAccessWriteViewName
  1601.         MIN-ACCESS    read-only
  1602.         DESCRIPTION  "Write access is not required."
  1603.  
  1604.         OBJECT        vacmAccessNotifyViewName
  1605.         MIN-ACCESS    read-only
  1606.         DESCRIPTION  "Write access is not required."
  1607.  
  1608.         OBJECT        vacmAccessStorageType
  1609.         MIN-ACCESS    read-only
  1610.         DESCRIPTION  "Write access is not required."
  1611.  
  1612.         OBJECT        vacmAccessStatus
  1613.         MIN-ACCESS    read-only
  1614.         DESCRIPTION  "Create/delete/modify access to the                  |
  1615.                       vacmAccessTable is not required.                    |
  1616.                      "
  1617.  
  1618.         OBJECT        vacmViewTreeFamilyMask
  1619.         WRITE-SYNTAX  OCTET STRING (SIZE (0))
  1620.         MIN-ACCESS    read-only
  1621.         DESCRIPTION  "Support for configuration via SNMP of subtree
  1622.                       families using wild-cards is not required.
  1623.                      "
  1624.  
  1625.         OBJECT        vacmViewTreeFamilyType
  1626.         MIN-ACCESS    read-only
  1627.         DESCRIPTION  "Write access is not required."
  1628.  
  1629.         OBJECT        vacmViewTreeFamilyStorageType
  1630.         MIN-ACCESS    read-only
  1631.         DESCRIPTION  "Write access is not required."
  1632.  
  1633.         OBJECT        vacmViewTreeFamilyStatus
  1634.         MIN-ACCESS    read-only
  1635.         DESCRIPTION  "Create/delete/modify access to the                  |
  1636.                       vacmViewTreeFamilyTable is not required.            |
  1637.                      "
  1638.     ::= { vacmMIBCompliances 1 }
  1639.  
  1640. -- Units of conformance **********************************************
  1641.  
  1642. vacmBasicGroup OBJECT-GROUP
  1643.     OBJECTS {
  1644.               vacmContextName,
  1645.               vacmGroupName,
  1646.               vacmSecurityToGroupStorageType,
  1647.  
  1648.  
  1649.  
  1650. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 28]
  1651.  
  1652. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1653.  
  1654.  
  1655.               vacmSecurityToGroupStatus,
  1656.               vacmAccessContextMatch,
  1657.               vacmAccessReadViewName,
  1658.               vacmAccessWriteViewName,
  1659.               vacmAccessNotifyViewName,
  1660.               vacmAccessStorageType,
  1661.               vacmAccessStatus,
  1662.               vacmViewSpinLock,
  1663.               vacmViewTreeFamilyMask,
  1664.               vacmViewTreeFamilyType,
  1665.               vacmViewTreeFamilyStorageType,
  1666.               vacmViewTreeFamilyStatus
  1667.             }
  1668.     STATUS       current
  1669.     DESCRIPTION "A collection of objects providing for remote
  1670.                  configuration of an SNMP engine which implements
  1671.                  the SNMP View-based Access Control Model.
  1672.                 "
  1673.     ::= { vacmMIBGroups 1 }
  1674.  
  1675. END
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 29]
  1710.  
  1711. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1712.  
  1713.  
  1714. 5.  Security Considerations
  1715.  
  1716.  
  1717. 5.1.  Recommended Practices
  1718.  
  1719.    This document is meant for use in the SNMP architecture.  The
  1720.    View-based Access Control Model described in this document checks
  1721.    access rights to management information based on:
  1722.  
  1723.    - contextName, representing a set of management information at the
  1724.      managed system where the Access Control module is running.
  1725.    - groupName, representing a set of zero or more securityNames.
  1726.      The combination of a securityModel and a securityName is mapped
  1727.      into a group in the View-based Access Control Model.
  1728.    - securityModel under which access is requested.
  1729.    - securityLevel under which access is requested.
  1730.    - operation performed on the management information.
  1731.    - MIB views for read, write or notify access.
  1732.  
  1733.    When the User-based Access Control module is called for checking
  1734.    access rights, it is assumed that the calling module has ensured
  1735.    the authentication and privacy aspects as specified by the
  1736.    securityLevel that is being passed.
  1737.  
  1738.    When creating entries in or deleting entries from the                  |
  1739.    vacmViewFamiliyTreeTable it is important to do such in the sequence    2
  1740.    as recommended in the DESCRIPTION clause of the vacmViewFamilityTable  2
  1741.    definition. Otherwise unwanted access may be granted while changing    |
  1742.    the entries in the table.                                              |
  1743.  
  1744. 5.2.  Defining Groups
  1745.  
  1746.    The groupNames are used to give access to a group of zero or more
  1747.    securityNames.  Within the View-Based Access Control Model, a
  1748.    groupName is considered to exist if that groupName is listed in the
  1749.    vacmSecurityToGroupTable.
  1750.  
  1751.    By mapping the combination of a securityModel and securityName into
  1752.    a groupName, an SNMP Command Generator application can add/delete
  1753.    securityNames to/from a group, if proper access is allowed.
  1754.                                                                           |
  1755.    Further it is important to realize that the grouping of                |
  1756.    <securityModel, securityName> tuples in the vacmSecurityToGroupTable   2
  1757.    does not take securityLevel into account. It is therefore important    |
  1758.    that the security administrator uses the securityLevel index in the    |
  1759.    vacmAccessTable to separate noAuthNoPriv from authPriv and/or          2
  1760.    authNoPriv access.
  1761.  
  1762. 5.3.  Conformance
  1763.  
  1764.    For an implementation of the View-based Access Control Model to be
  1765.  
  1766.  
  1767.  
  1768. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 30]
  1769.  
  1770. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1771.  
  1772.  
  1773.    conformant, it MUST implement the SNMP-VIEW-BASED-ACM-MIB.  It also
  1774.    SHOULD implement the initial configuration, described in appendix A.   |
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 31]
  1828.  
  1829. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1830.  
  1831.  
  1832. 6.  Editors' Addresses
  1833.  
  1834.    Co-editor:  Bert Wijnen
  1835.                IBM T. J. Watson Research
  1836.    postal:     Schagen 33
  1837.                3461 GL Linschoten
  1838.                Netherlands
  1839.    email:      wijnen@vnet.ibm.com
  1840.    phone:      +31-348-432-794
  1841.  
  1842.    Co-editor:  Randy Presuhn
  1843.                BMC Software, Inc
  1844.    postal:     1190 Saratoga Avenue, Suite 130
  1845.                San Jose, CA  95129-3433
  1846.                USA
  1847.    email:      rpresuhn@bmc.com
  1848.    phone:      +1-408-556-0720
  1849.  
  1850.    Co-editor:  Keith McCloghrie
  1851.                Cisco Systems, Inc.
  1852.    postal:     170 West Tasman Drive
  1853.                San Jose, CA  95134-1706
  1854.                USA
  1855.    email:      kzm@cisco.com
  1856.    phone:      +1-408-526-5260
  1857.  
  1858.  
  1859. 7.  Acknowledgements
  1860.  
  1861. This document is the result of the efforts of the SNMPv3 Working Group.
  1862. Some special thanks are in order to the following SNMPv3 WG members:
  1863.  
  1864.     Dave Battle (SNMP Research, Inc.)
  1865.     Uri Blumenthal (IBM T.J. Watson Research Center)
  1866.     Jeff Case (SNMP Research, Inc.)
  1867.     John Curran (BBN)
  1868.     T. Max Devlin (Hi-TECH Connections)
  1869.     John Flick (Hewlett Packard)
  1870.     David Harrington (Cabletron Systems Inc.)
  1871.     N.C. Hien (IBM T.J. Watson Research Center)
  1872.     Dave Levi (SNMP Research, Inc.)
  1873.     Louis A Mamakos (UUNET Technologies Inc.)
  1874.     Paul Meyer (Secure Computing Corporation)
  1875.     Keith McCloghrie (Cisco Systems)
  1876.     Russ Mundy (Trusted Information Systems, Inc.)
  1877.     Bob Natale (ACE*COMM Corporation)
  1878.     Mike O'Dell (UUNET Technologies Inc.)
  1879.     Dave Perkins (DeskTalk)
  1880.     Peter Polkinghorne (Brunel University)
  1881.     Randy Presuhn (BMC Software, Inc.)
  1882.     David Reid (SNMP Research, Inc.)
  1883.  
  1884.  
  1885.  
  1886. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 32]
  1887.  
  1888. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1889.  
  1890.  
  1891.     Shawn Routhier (Epilogue)
  1892.     Juergen Schoenwaelder (TU Braunschweig)
  1893.     Bob Stewart (Cisco Systems)
  1894.     Bert Wijnen (IBM T.J. Watson Research Center)
  1895.  
  1896. The document is based on recommendations of the IETF Security and
  1897. Administrative Framework Evolution for SNMP Advisory Team.
  1898. Members of that Advisory Team were:
  1899.  
  1900.     David Harrington (Cabletron Systems Inc.)
  1901.     Jeff Johnson (Cisco Systems)
  1902.     David Levi (SNMP Research Inc.)
  1903.     John Linn (Openvision)
  1904.     Russ Mundy (Trusted Information Systems) chair
  1905.     Shawn Routhier (Epilogue)
  1906.     Glenn Waters (Nortel)
  1907.     Bert Wijnen (IBM T. J. Watson Research Center)
  1908.  
  1909. As recommended by the Advisory Team and the SNMPv3 Working Group
  1910. Charter, the design incorporates as much as practical from previous
  1911. RFCs and drafts. As a result, special thanks are due to the authors
  1912. of previous designs known as SNMPv2u and SNMPv2*:
  1913.  
  1914.     Jeff Case (SNMP Research, Inc.)
  1915.     David Harrington (Cabletron Systems Inc.)
  1916.     David Levi (SNMP Research, Inc.)
  1917.     Keith McCloghrie (Cisco Systems)
  1918.     Brian O'Keefe (Hewlett Packard)
  1919.     Marshall T. Rose (Dover Beach Consulting)
  1920.     Jon Saperia (BGS Systems Inc.)
  1921.     Steve Waldbusser (International Network Services)
  1922.     Glenn W. Waters (Bell-Northern Research Ltd.)
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 33]
  1946.  
  1947. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  1948.  
  1949.  
  1950. 8.  References
  1951.  
  1952. [RFC1902] The SNMPv2 Working Group, Case, J., McCloghrie, K.,
  1953.      Rose, M., and S., Waldbusser, "Structure of Management
  1954.      Information for Version  2 of the Simple Network Management
  1955.      Protocol (SNMPv2)", RFC 1902, January 1996.
  1956.  
  1957. [RFC1903] The SNMPv2 Working Group, Case, J., McCloghrie, K., Rose, M.,   |
  1958.     and S. Waldbusser, "Textual Conventions for Version 2 of the Simple   |
  1959.     Network Management Protocol (SNMPv2)", RFC 1903, January 1996.        |
  1960.                                                                           |
  1961. [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate             2
  1962.      Requirement Levels", RFC 2119, BCP 14, March 1997.                   2
  1963.  
  1964. [SNMP-ARCH] The SNMPv3 Working Group, Harrington, D., Wijnen, B.,         2
  1965.      Presuhn, R., "An Architecture for describing SNMP Management         2
  1966.      Frameworks", draft-ietf-snmpv3-next-gen-arch-05.txt,                 2
  1967.      September 1997.                                                      2
  1968.  
  1969. [SNMP-MPD] The SNMPv3 Working Group, Case, J., Harrington, D.,            2
  1970.      Wijnen, B., Presuhn, R., "Message Processing and Dispatching for     2
  1971.      the Simple Network Management Protocol (SNMP)",                      2
  1972.      draft-ietf-snmpv3-v3mpc-model-03.txt, September 1997.                2
  1973.  
  1974. [ISO-ASN.1] Information processing systems - Open Systems
  1975.      Interconnection - Specification of Abstract Syntax Notation One
  1976.      (ASN.1), International Organization for Standardization.
  1977.      International Standard 8824, (December, 1987).
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 34]
  2005.  
  2006. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  2007.  
  2008.  
  2009. APPENDIX A - Installation
  2010.  
  2011. A.1.  Installation Parameters
  2012.  
  2013. During installation, an authoritative SNMP engine which supports this     |
  2014. View-based Access Control Model SHOULD be configured with several         |
  2015. initial parameters.                                                       |
  2016. These include for the View-based Access Control Model:
  2017.  
  2018. 1) A security configuration
  2019.  
  2020.    The choice of security configuration determines if initial
  2021.    configuration is implemented and if so how.
  2022.    One of three possible choices is selected:
  2023.  
  2024.      - initial-minimum-security-configuration
  2025.      - initial-semi-security-configuration
  2026.      - initial-no-access-configuration
  2027.  
  2028.    In the case of a initial-no-access-configuration, there is no
  2029.    initial configuration, and so the following steps are irrelevant.
  2030.  
  2031. 2) A default context
  2032.  
  2033.    One entry in the vacmContextTable with a contextName of "" (the
  2034.    empty string), representing the default context.  Note that this
  2035.    table gets created automatically if a default context exists.
  2036.  
  2037.                                  no privacy support  privacy support
  2038.                                  ------------------  ---------------
  2039.     vacmContextName              ""                  ""
  2040.  
  2041. 3) An initial group
  2042.  
  2043.    One entry in the vacmSecurityToGroupTable to allow access to group
  2044.    "initial".
  2045.  
  2046.                                  no privacy support  privacy support
  2047.                                  ------------------  ---------------
  2048.   vacmSecurityModel              3 (USM)             3 (USM)
  2049.   vacmSecurityName               "initial"           "initial"
  2050.   vacmGroupName                  "initial"           "initial"
  2051.   vacmSecurityToGroupStorageType anyValidStorageType anyValidStorageType
  2052.   vacmSecurityToGroupStatus      active              active
  2053.  
  2054. 4) Initial access rights
  2055.  
  2056.    Three entries in the vacmAccessTable as follows:
  2057.  
  2058.    - read-notify access for securityModel USM, securityLevel
  2059.      "noAuthNoPriv" on behalf of securityNames that belong to the
  2060.  
  2061.  
  2062.  
  2063. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 35]
  2064.  
  2065. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  2066.  
  2067.  
  2068.      group "initial" to the <restricted> MIB view in the default
  2069.      context with contextName "".
  2070.  
  2071.    - read-write-notify access for securityModel USM, securityLevel
  2072.      "authNoPriv" on behalf of securityNames that belong to the
  2073.      group "initial" to the <internet> MIB view in the default context
  2074.      with contextName "".
  2075.  
  2076.    - if privacy is supported,
  2077.      read-write-notify access for securityModel USM, securityLevel
  2078.      "authPriv" on behalf of securityNames that belong to the group
  2079.      "initial" to the <internet> MIB view in the default context with
  2080.      contextName "".
  2081.  
  2082.    That translates into the following entries in the vacmAccessTable.
  2083.    Those columns marked with (index) are index-only objects and are
  2084.    not really present in this table.
  2085.  
  2086.    - One entry to be used for unauthenticated access (noAuthNoPriv):
  2087.  
  2088.                                no privacy support  privacy support
  2089.                                ------------------  ---------------
  2090.     vacmAccessContextPrefix    ""                  ""
  2091.     vacmGroupName     (index)  "initial"           "initial"
  2092.     vacmSecurityModel (index)  3 (USM)             3 (USM)
  2093.     vacmAccessSecurityLevel    noAuthNoPriv        noAuthNoPriv
  2094.     vacmAccessReadViewName     "restricted"        "restricted"
  2095.     vacmAccessWriteViewName    ""                  ""
  2096.     vacmAccessNotifyViewName   "restricted"        "restricted"
  2097.     vacmAccessStorageType      anyValidStorageType anyValidStorageType
  2098.     vacmAccessStatus           active              active
  2099.  
  2100.    - One entry to be used for authenticated access but without
  2101.      privacy (authNoPriv):
  2102.                                no privacy support  privacy support
  2103.                                ------------------  ---------------
  2104.     vacmAccessContextPrefix    ""                  ""
  2105.     vacmGroupName     (index)  "initial"           "initial"
  2106.     vacmSecurityModel (index)  3 (USM)             3 (USM)
  2107.     vacmAccessSecurityLevel    authNoPriv          authNoPriv
  2108.     vacmAccessReadViewName     "internet"          "internet"
  2109.     vacmAccessWriteViewName    "internet"          "internet"
  2110.     vacmAccessNotifyViewName   "internet"          "internet"
  2111.     vacmAccessStorageType      anyValidStorageType anyValidStorageType
  2112.     vacmAccessStatus           active              active
  2113.  
  2114.    - One entry to be used for authenticated access with privacy
  2115.      (authPriv):
  2116.  
  2117.                                no privacy support  privacy support
  2118.                                ------------------  ---------------
  2119.  
  2120.  
  2121.  
  2122. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 36]
  2123.  
  2124. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  2125.  
  2126.  
  2127.     vacmAccessContextPrefix                        ""
  2128.     vacmGroupName     (index)                      "initial"
  2129.     vacmSecurityModel (index)                      3 (USM)
  2130.     vacmAccessSecurityLevel                        authPriv
  2131.     vacmAccessReadViewName                         "internet"
  2132.     vacmAccessWriteViewName                        "internet"
  2133.     vacmAccessNotifyViewName                       "internet"
  2134.     vacmAccessStorageType                          anyValidStorageType
  2135.     vacmAccessStatus                               active
  2136.  
  2137. 5) Two MIB views, of which the second one depends on the security
  2138.    configuration.
  2139.  
  2140.    -  One view, the <internet> view, for authenticated access:
  2141.  
  2142.       -  the <internet> MIB view is the following subtree:
  2143.              "internet"  (subtree 1.3.6.1)
  2144.  
  2145.    -  A second view, the <restricted> view, for unauthenticated
  2146.       access.  This view is configured according to the selected
  2147.       security configuration:
  2148.  
  2149.       -  For the initial-no-access-configuration there is no default
  2150.          initial configuration, so no MIB views are pre-scribed.
  2151.  
  2152.       -  For the initial-semi-secure-configuration:
  2153.  
  2154.          the <restricted> MIB view is the union of these subtrees:
  2155.          (a) "system"       (subtree 1.3.6.1.2.1.1)     [RFC1907]
  2156.          (b) "snmp"         (subtree 1.3.6.1.2.1.11)    [RFC1907]
  2157.          (c) "snmpEngine"   (subtree 1.3.6.1.6.3.7.2.1) [SNMP-ARCH]
  2158.          (d) "snmpMPDStats" (subtree 1.3.6.1.6.3.8.2.1) [SNMP-MPD]
  2159.          (e) "usmStats"     (subtree 1.3.6.1.6.3.9.2.1) [SNMP-USM]
  2160.  
  2161.       -  For the initial-minimum-secure-configuration:
  2162.  
  2163.          the <restricted> MIB view is the following subtree.
  2164.              "internet"  (subtree 1.3.6.1)
  2165.  
  2166.    This translates into the following "internet" entry in the
  2167.    vacmViewTreeFamilyTable:
  2168.  
  2169.                                 minimum-secure      semi-secure
  2170.                                 ----------------    ---------------
  2171.   vacmViewTreeFamilyViewName    "internet"          "internet"
  2172.   vacmViewTreeFamilySubtree     1.3.6.1             1.3.6.1
  2173.   vacmViewTreeFamilyMask        ""                  ""
  2174.   vacmViewTreeFamilyType        1 (included)        1 (included)
  2175.   vacmViewTreeFamilyStorageType anyValidStorageType anyValidStorageType
  2176.   vacmViewTreeFamilyStatus      active              active
  2177.  
  2178.  
  2179.  
  2180.  
  2181. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 37]
  2182.  
  2183. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  2184.  
  2185.  
  2186.    In addition it translates into the following "restricted" entries
  2187.    in the vacmViewTreeFamilyTable:
  2188.  
  2189.                                 minimum-secure      semi-secure
  2190.                                 ----------------    ---------------
  2191.   vacmViewTreeFamilyViewName    "restricted"        "restricted"
  2192.   vacmViewTreeFamilySubtree     1.3.6.1             1.3.6.1.2.1.1
  2193.   vacmViewTreeFamilyMask        ""                  ""
  2194.   vacmViewTreeFamilyType        1 (included)        1 (included)
  2195.   vacmViewTreeFamilyStorageType anyValidStorageType anyValidStorageType
  2196.   vacmViewTreeFamilyStatus      active              active
  2197.  
  2198.   vacmViewTreeFamilyViewName                        "restricted"
  2199.   vacmViewTreeFamilySubtree                         1.3.6.1.2.1.11
  2200.   vacmViewTreeFamilyMask                            ""
  2201.   vacmViewTreeFamilyType                            1 (included)
  2202.   vacmViewTreeFamilyStorageType                     anyValidStorageType
  2203.   vacmViewTreeFamilyStatus                          active
  2204.  
  2205.   vacmViewTreeFamilyViewName                        "restricted"
  2206.   vacmViewTreeFamilySubtree                         1.3.6.1.6.3.7.2.1
  2207.   vacmViewTreeFamilyMask                            ""
  2208.   vacmViewTreeFamilyType                            1 (included)
  2209.   vacmViewTreeFamilyStorageType                     anyValidStorageType
  2210.   vacmViewTreeFamilyStatus                          active
  2211.  
  2212.   vacmViewTreeFamilyViewName                        "restricted"
  2213.   vacmViewTreeFamilySubtree                         1.3.6.1.6.3.8.2.1
  2214.   vacmViewTreeFamilyMask                            ""
  2215.   vacmViewTreeFamilyType                            1 (included)
  2216.   vacmViewTreeFamilyStorageType                     anyValidStorageType
  2217.   vacmViewTreeFamilyStatus                          active
  2218.  
  2219.   vacmViewTreeFamilyViewName                        "restricted"
  2220.   vacmViewTreeFamilySubtree                         1.3.6.1.6.3.9.2.1
  2221.   vacmViewTreeFamilyMask                            ""
  2222.   vacmViewTreeFamilyType                            1 (included)
  2223.   vacmViewTreeFamilyStorageType                     anyValidStorageType
  2224.   vacmViewTreeFamilyStatus                          active
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 38]
  2241.  
  2242. Draft    View-based Access Control Model (ACM) for SNMP   September 1997
  2243.  
  2244.  
  2245. Table of Contents
  2246.  
  2247. 0.  Issues and Change Log                                              2
  2248. 0.1.  Resolved issues                                                  2
  2249. 0.2.  Change Log                                                       2
  2250. 1.  Introduction                                                       5
  2251. 1.2.  Access Control                                                   5
  2252. 1.3.  Local Configuration Datastore                                    6
  2253. 2.  Elements of the Model                                              7
  2254. 2.1.  Groups                                                           7
  2255. 2.2.  securityLevel                                                    7
  2256. 2.3.  Contexts                                                         7
  2257. 2.4.  MIB Views and View Families                                      8
  2258. 2.4.1.  View Subtree                                                   8
  2259. 2.4.2.  ViewTreeFamily                                                 8
  2260. 2.5.  Access Policy                                                    9
  2261. 3.  Elements of Procedure                                             10
  2262. 3.1.  Overview  of isAccessAllowed Process                            11
  2263. 3.2.  Processing the isAccessAllowed Service Request                  12
  2264. 4.  Definitions                                                       14
  2265. 5.  Security Considerations                                           30
  2266. 5.1.  Recommended Practices                                           30
  2267. 5.2.  Defining Groups                                                 30
  2268. 5.3.  Conformance                                                     30
  2269. 6.  Editors' Addresses                                                32
  2270. 7.  Acknowledgements                                                  32
  2271. 8.  References                                                        34
  2272. A.1.  Installation Parameters                                         35
  2273.  
  2274.  
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280.  
  2281.  
  2282.  
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301. Wijnen/Presuhn/McCloghrie         Expires March 1998           [Page 39]
  2302.