Hello Alexander,

thank you for your support, but your solution did not solve the Problem.
My snmpd.conf-File looks like this:

com2sec local localhost public
group MyRWGroup usm        local
view all included .1 80
access MyRWGroup ""      any       priv   exact  all    all    none
rwuser initial priv 
createUser initial MD5 "my_password" DES "my_password" 

Although, i think, not setting a DES-passphrase means, that DES will use the
authentication-passphrase.

I think, this shouldn't allow v2c to access my variable, but, its still
possible. Do i make any mistakes?

And do you know, which functions i have to call addittionally to the
function in snmpdemapp.c to encrypt my setting of variables when i use the
snmp-api?

Kind regards,

Sven



> Hello,
> 
> u missed the priv pass
> createUser name MD5 authpass DES privpass
> 
> rwuser should work , better is group/view/access modell, so u can disallow
> v1/2c.
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Sven
> Jonas
> Sent: Donnerstag, 4. November 2004 12:07
> To: [EMAIL PROTECTED]
> Subject: encryption sample
> 
> 
> Hello,
> 
> i would like to use snmpv3 with Sec-Level authPriv. Are there any
> api-Samples available?
> 
> Because, the snmpdemoapp.c - Sample uses only SNMP_SEC_LEVEL_AUTHNOPRIV.
> 
> I think, only setting session.securityLevel = SNMP_SEC_LEVEL_AUTHPRIV and
> calling the function generate_Ku isn't enough for encryption. Which
> functions do i have to call additionally to the functions in
> snmpdemoapp.c?
> 
> On the agent side, i have created this agent with the mib2c-Tool and added
> the following two lines in snmpd.conf:
> rwuser myuser priv
> createUser myuser MD5 "my_password" DES
> 
> When i try to get some variables with an snmpget v 2c - command this
> works.
> And from my point of view, this shouldn't work, because snmpv2c is not
> able
> to handle authentication or encryption. 
> 
> Net-Snmp is installed with the parameter "--with-openssl".
> 
> Can anybody help me, please?
> 
> Kind regards,
> 
> Sven
> 
> -- 
> Geschenkt: 3 Monate GMX ProMail + 3 Top-Spielfilme auf DVD
> ++ Jetzt kostenlos testen http://www.gmx.net/de/go/mail ++
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> Net-snmp-coders mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
> 

-- 
Geschenkt: 3 Monate GMX ProMail + 3 Top-Spielfilme auf DVD
++ Jetzt kostenlos testen http://www.gmx.net/de/go/mail ++



-- 
Geschenkt: 3 Monate GMX ProMail + 3 Top-Spielfilme auf DVD
++ Jetzt kostenlos testen http://www.gmx.net/de/go/mail ++



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to