Taymour A. El Erian wrote:
> Hi,
>
> I am using freeradius with snmp on 64 bit, I noticed in the debug mode
> the following
>
> smux: [smux_open_process] smux peer passwd: password
> smux: [smux_open_process] len 0, type 4
>
> Notice that the len in second line is 0, is this normal ?, shouldn't it
> be 8 ?. What comes later is authentication failed.
>
>
I have been doing debug work and my guess is the problem is here
smux.c
if (!smux_auth_peer(oid_name, oid_name_len, passwd, fd)) {
snmp_log(LOG_WARNING,
"refused smux peer: oid %s, descr %s\n",
oid_print, descr);
*fail = TRUE;
return ptr;
}
I have printed the password in the log and it is printed ok but the len
is always 0. I went and modified the code of smux_auth_peer to just
return 1 and of course this made the authentication succeed. I guess the
problem actually is in the string comparison in this function. Please
help as am not so familiar with snmp programming.
--
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 the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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