Re: access control
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 21/02/2008, Masoud Fatollahy <[email protected]> wrote: > we have register our mibs with new context and want to read them by > setting username and password HMAC + context on a mib-browser. the > following configuration is used. > > createUser myuser2 MD5 "private_pass" > group v3_user_grp_private usm myuser2 > view all included .1 > access v3_user_grp_private "my_context" usm auth exact all none none The entries above are sufficient to enable access to MIBs registered using code of the form: > netsnmp_handler_registration *reg; > reg = netsnmp_create_handler_registration(.....); > reg->contextName = strdup("my_context"); > netsnmp_register_handler(reg); The rest of your snmpd.conf settings are not relevant to "my_context" queries. Note that the SNMP requests would need to specify this context as well: snmpget -v 3 -n my_context -u myuser2 -l authNoPriv -a MD5 -A private_pass .... (or equivalent snmp.conf client directives). If you're using a MIB browser, then you'll need to check the documentation for that application to see how to set the context. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users