I'm trying to see if Bug 1016849 
(https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1016849&group_id=12694) 
is still in 5.2.  I've installed 45.2.rc1 and I'm having unrelated problems which are 
preventing me from validating the bug.

My /usr/share/snmp/snmpd.conf (which works with 5.1.1) includes:

com2sec config localhost config
group config v2c config
view config included .1
access config "" any noauth exact config config config

com2sec public default public
view public included .1
group public_v2 v1 public
group public_v2 v2c public
access public_v2 "" any noauth exact public none none
group public_v3 usm public
access public_v3 "" any auth exact public none none

com2sec private default private
view private included .1
group private_v2 v1 private
group private_v2 v2c private
access private_v2 "" any noauth exact private private private
group private_v3 usm private
access private_v3 "" any auth exact private private private

and /var/net-snmp/snmpd.conf (also unchanged) has usmUser directives that make that 
work.  I can use snmpget on another system to read, for example, system.sysDescr.0 but 
on-node, when I try to use the config community to get values, snmp_get() times out.  
My code -- unchange from when it worked with 5.1.1 -- includes:

    init_snmp("snmpapp");
    snmp_sess_init( &session );
    
    session.peername = "localhost";
    session.retries = 1;
    session.version = SNMP_VERSION_2c;
    session.community = "config";
    session.community_len = strlen(session.community);
    
    ss = snmp_open(&session);        

    if ( ! ss) {
        snmp_perror("ack");
        snmp_log(LOG_ERR, "Could not establish session with SNMP daemon.\n");
        return NULL;
    }
    return ss;

and does not log a failure.  


Are there issues with authentication in 5.2.rc1 that someone else has discovered?  Did 
something in the snmp_sess_init() or snmp_open() change?



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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