This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: SNMP authentication
- From: llandre <r&d at wawnet dot biz>
- To: ecos-discuss at sources dot redhat dot com
- Cc: andrew dot lunn at ascom dot ch
- Date: Wed, 11 Sep 2002 12:31:24 +0200
- Subject: [ECOS] Re: SNMP authentication
>> I'm performing some tests with the snmpping test application
>> (packages\net\snmp\agent\current\tests\snmpping.c). It seems it
>> does not implement any form of authentication. I'm using the Loriot
>> 1.00 SNMP Manager (www.llecointe.com) to query the board running
>> eCos, but it does not matter the community I specify: I can retrieve
>> the managed objects anyway.
>> How to force the check against the community specified in the PDU?
>> Is it possible to change the communities at run-time?
>The snmp agent does not perform any authentication. The
infrastructure >is there to do it thought if you dig around in the code.
Its something i >once looked at, but did not use in the end. If i remember
correctly, >there is an authentication call back and you just have to
provide a >function to do the authentication.
>
> Andrew
You are right. The function is called "authenticator" and its prototype
is described in /lib/urrent/include/snmp_api.h. You have to set the
"sess.authenticator" field acordingly in the function "init_master_agent"
(/agent/current/src/snmp_agent.c) too.
Thanks again,
llandre
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss