Dave Shield wrote:
> On 15/04/2008, Taymour A. El Erian <[EMAIL PROTECTED]> wrote:
>
>>> Try removing the first (10892) entry, and try again.
>>>
>>>
>> I removed this entry, no difference.
>>
>
> What was the debug output?
> ([smux_auth_peer] messages)
>
>
>
>> If I use
>> smuxpeer .1.3.6.1.4.1.3317.1.3.1 password
>> Authentication fails
>>
>> If I use
>> smuxpeer .1.3.6.1.4.1.3317.1.3.1
>> Authentication works,,,,, [but]
>> Timeout: No Response from localhost
>>
>
> I'm out of ideas then, sorry.
>
> Dave
>
>
Here is a patch for fixing the problem, do you think this can make it in
the new release ?
------------------------- start patch ----------------------------------
--- net-snmp-5.2.2/agent/mibgroup/smux/smux.c 2005-09-27
17:45:00.000000000 +0100
+++ net-snmp-5.2.1.2/agent/mibgroup/smux/smux.c 2004-10-08
21:50:19.000000000 +0100
@@ -157,16 +153,24 @@
return;
}
+ if (*cptr == '.')
+ cptr++;
+
+ if (!isdigit(*cptr)) {
+ config_perror("second token is not an OID");
+ free((char *) aptr);
+ return;
+ }
/*
* oid
*/
- aptr->sa_oid_len = MAX_OID_LEN;
- read_objid( cptr, aptr->sa_oid, &aptr->sa_oid_len );
+ aptr->sa_oid_len = parse_miboid(cptr, aptr->sa_oid);
DEBUGMSGTL(("smux_conf", "parsing registration for: %s\n", cptr));
- cptr = skip_token(cptr);
- DEBUGMSGTL(("smux_conf", "password is: %s\n", cptr ? cptr : "NULL"));
+ while (isdigit(*cptr) || *cptr == '.')
+ cptr++;
+ cptr = skip_white(cptr);
/*
* password
--
Taymour A El Erian
System Division Manager
RHCE, LPIC, CCNA, MCSE, CNA
TE Data
E-mail: [EMAIL PROTECTED]
Web: www.tedata.net
Tel: +(202)-33320700
Fax: +(202)-33320800
Ext: 1101
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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