Re: SNMP on 64bit platform
"Taymour A. El Erian" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Dave Shield wrote: > On 14/04/2008, Taymour A. El Erian <[email protected]> wrote: > >> 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 ? >> > > I don't know whether this is normal or not, but no - it shouldn't be 8. > 'len' refers to the input buffer being parsed (i.e. the incoming SMUX > request), and indicates the length still remaining to be processed. > It is *not* the length of the token that has just been parsed. > > If you look at the full debug output, you should see a > sequence of 'smux_open_process' messages, with the len > value going down each time. > > > >> . What comes later is authentication failed. >> > > You may need to run the agent under a debugger, and step > through the routine 'smux_auth_peer', to check what OIDs > and passwords are being checked. > (Or else add some debugging code to this routine, > and re-compile). > > Dave > > ------------------------------------------------------------------------- > 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 > > > 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