Hi, I am using version 5.4.2.1 that services SNMP version 3 requests (both Auth and Priv), but have run into a problem with an external application I am writing. It is on the server side and uses pass_persist to interact with an external PostgreSQL database. This part is currently working well.
However, the application needs to know the "user" (securityName) associated with the SNMP request and display this information for all to see. It has the concept of only allowing a single user to have write control at a point in time and that user name needs to be visible to all other logged in users who need write access to the system. The process of obtaining and releasing write control are both performed via separate SNMP requests. I have looked for the session information in pass_persist.c but it does not appear to be available. Does anyone know a way I can get the "securityName" from within pass_persist.c? If this is not possible, then modifying the code may be the way to go. Any pointers or suggestions as to what I would need to change would be highly appreciated. I have tried some experimentation code changes using netsnmp_query_get_default_session() and netsnmp_ds_get_string() from within pass_persist.c, but with no success. I am very much a novice to the 5.4.2.1 code and at this stage need some help. Best Regards, William Powrie ________________________________ Este correo electr?nico y, en su caso, cualquier fichero anexo al mismo, contiene informaci?n de car?cter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilizaci?n, divulgaci?n y/o copia sin autorizaci?n est? prohibida en virtud de la legislaci?n vigente. En el caso de haber recibido este correo electr?nico por error, se ruega notificar inmediatamente esta circunstancia mediante reenv?o a la direcci?n electr?nica del remitente. Evite imprimir este mensaje si no es estrictamente necesario. This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address. Avoid printing this message if it is not absolutely necessary.
------------------------------------------------------------------------------
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders