On 20/02/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I am trying with manually editing the /var/net-snmp/snmpd.conf.
And adding the following lines for creating snmp v3 users.

createUser snmpv3user MD5 password DES password
createUser anotheruser MD5 password DES

After saving this file, I am sending a SIGHUP signal, using the command

kill -1 <pid of snmpd>

What I am expecting is the user information should have got scrambled there.
But it is not happening.

No - the user information is scrambled (localised) when the persistent
information is *saved* rather than when the config is read.  The man
page is somewhat vague (and perhaps even misleading) about this.


And when I restart the snmpd, then I see the userinfo got scrambled.

It's possible to force this behaviour using the MIB object
UCD-SNMP-MIB::versionSavePersistentData.
Setting this (scalar instance) to 1 will result in scrambling
the user entr.


The attached patch would implement the behaviour you
expect.  I'm currently torn between applying this, and
updating the documentation to clarify the current behaviour.

Dave
Index: agent_read_config.c
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/agent/agent_read_config.c,v
retrieving revision 5.9
diff -u -r5.9 agent_read_config.c
--- agent_read_config.c	6 Oct 2004 02:02:37 -0000	5.9
+++ agent_read_config.c	22 Feb 2007 09:49:41 -0000
@@ -273,6 +273,8 @@
                         SNMPD_CALLBACK_PRE_UPDATE_CONFIG, NULL);
     free_config();
     read_configs();
+    snmp_store(netsnmp_ds_get_string(NETSNMP_DS_LIBRARY_ID,
+                                     NETSNMP_DS_LIB_APPTYPE));
 }
 
 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to