[AGENT++] More on Community/Security Name?

Jochen Katz katz at agentpp.com
Mon Aug 9 20:39:31 CEST 2004


Hi,

> Then, where is that “public” string defined when you have SNMPv3
> enabled and V1 or V2 request is sent to it?

it's nowhere defined, if SNMPv3 is enabled, the VACM is used to decide 
if v1/v2c requests are allowed.

> Basically, I am trying to
> give potential users ability to change the community string to
> something else but “public”,

So you have to configure the SecurityToGroupTable of the VACM either 
through SNMP or through (from atm-mib example):

         vacm->addNewGroup(SecurityModel_v2, "public",
                          "v1v2group", storageType_nonVolatile);
         vacm->addNewGroup(SecurityModel_v1, "public",
                          "v1v2group", storageType_nonVolatile);
    	vacm->deleteGroup(...)

> but even by changing the security name
> to something else, “public” one still remains in there. Is that the
> correct behavior or maybe a possible bug in the agent?

If you remove the two lines with "public" from 
examples/atm_mib/src/agent.cpp it will no longer answer v1/v2c requests.

Regards,
   Jochen




More information about the AGENTPP mailing list