> I am using version 5.4.2.1 that services SNMP version 3
> requests [..and..] the application needs to know the
> "user" (securityName) associated with the SNMP request [...]
>
> The process of obtaining and releasing write control are both
> performed via separate  SNMP requests.

Are those also pass_persist requests?

> I have looked for the session information in pass_persist.c but
> it does not appear to be available.

That's correct, it isn't. Pass persist uses the old-style api,
which pre-dates snmp v3.  

RS> Does anyone know a way I can get the "securityName" from within
RS> pass_persist.c? If this is not possible, then modifying the
RS> code may be the way to go. Any pointers or suggestions as to
RS> what I would need to change would be highly appreciated.

The only way I can think of is with a global variable. You can
register a handler (above the old_api handler) that can pull the
user from reqinfo->asp->orig_pdu->securityName and save it,
clearing it again after lower handlers have been called. Not
pretty, but it might work.

Robert

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to