Re: Is it possible to get the user id of the sender in an agentX suba gent?
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2006-03-16 at 20:43 -0800, Chris Koverman wrote: > I am porting a legacy app that supports a couple of mibs to linux and > I am replacing the old snmp code with net-snmp. I've used mib2c to > generate all the callback routines in my agentX subagent. The old > snmp code (v1, v2 only) did some access restriction based upon the > user id, which they just extracted from the pdu. It doesn't appear > that I have access to the pdu or the userID in my callback routines. > Does anyone know of a way to access this information in the agentX > modules? That simply is not possible when using AgentX. The community/user information is not covered by the AgentX protocol, so that information is not passed to the AgentX subagent. This means that it cannot be provided to the MIB modules. Access control is the responsibility of the main SNMP agent, using one of the standard access control frameworks (typically VACM). Dave ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ 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