subagent securityName

"Kurtzberg, David W." <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <4E3EC6C86E7C4D42B253D1CBD6309D9302D09394@vaff06-mail01.ad.gd-ais.com>
Hello,

I'm working on an net-snmp subagent to implement SNMP GET requests. In
my function to handle the SNMP request, I would like to be able to see
the SNMPv3 security name for the user that issued the request. So if I
run:
snmpget -v 3 -l authPriv -u tempUser [...] I would like to be able to
see that the get came from "tempUser" in my subagent.

I searched through the arguments in my handler function, and I found a
securityName field in both *reqinfo->asp->pdu and *reqinfo->asp->session
but the securityName in both locations is 0x0. In the session data the
contextName is not null but it is an empty string. 

If I do a -D ALL when I run snmpget I can see my user name in the log
statements so I know that net-snmp knows about it, but the information
is getting lost somewhere between net-snmp and my subagent.

Does anyone know the easiest way that I can get the securityName field
to have data? Do I need to do something special in the configuration
files other than creating the user to allow the securityName field in
the session data to be populated?

Thanks,
Dave Kurtzberg

------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.