[AGENT++] how to change default community? ( another question )
Jochen Katz
katz at agentpp.com
Wed Jan 3 11:31:48 CET 2007
Hi,
> In this approach, How can I add different community to read community and
> write community differently?
again, this is done with the right VACM configuration.
Below the needed calls for v1, for v2 copy it with SecurityModel_v2.
Map "public" to group "v1v2readgroup":
vacm->addNewGroup(SecurityModel_v1, "public",
"v1v2readgroup", storageType_volatile);
Map "secret" to group "v1v2writegroup":
vacm->addNewGroup(SecurityModel_v1, "secret",
"v1v2writegroup", storageType_volatile);
Give "v1v2readgroup" only access to "v1ReadView":
vacm->addNewAccessEntry("v1v2readgroup", "",
SecurityModel_v1,
SecurityLevel_noAuthNoPriv,
match_exact,
"v1ReadView", "",
"",
storageType_nonVolatile);
Give "v1v2writegroup" access to 'v1Read/Write/NotifyView':
vacm->addNewAccessEntry("v1v2writegroup", "",
SecurityModel_v1,
SecurityLevel_noAuthNoPriv,
match_exact,
"v1ReadView", "v1WriteView",
"v1NotifyView",
storageType_nonVolatile);
Depending on your needs, you can change the configuration for
"v1ReadView" and/or "v1WriteView".
Regards,
Jochen
More information about the AGENTPP
mailing list