Dave Shield wrote:
> On 15/04/2008, Taymour A. El Erian <[EMAIL PROTECTED]> wrote:
>   
>>  I have printed the password in the log and it is printed ok but the len
>>  is always 0.
>>     
>
> Please read my reply.
> I have just explained that 'len' is the length of the incoming SMUX
> packet waiting to be processed.   It is *NOT* the length of the password.
>
>    If the password is the last element (or the last element of this chunk),
> then yes - len will always be 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.
>>     
>
> It's most likely in the list of OIDs and passwords that are being checked.
>
>   
>> Please  help as am not so familiar with snmp programming.
>>     
>
> There's nothing particularly specific to SNMP about this bit.
> It's simply a matter of checking exactly what is being compared.
> Please find attached a patch (completely untested!), which ought
> to provide some useful debugging information.
>
> Dave
>
> PS:  Please could you fix your mail system.
>         It seemed to reject my earlier response as "unsolicited"!
>   
> ------------------------------------------------------------------------
>
>   
I had to comment out the declaration of passwd (compilation error since 
it is defined in the function) and the patch worked and the output 
below, can you tell me what it means ?
My guess is next if fails (since the next debug is not printed)
if (snmp_oid_compare(Auths[i]->sa_oid, Auths[i]->sa_oid_len,
                             name, namelen) == 0)


smux: [smux_auth_peer] Authorizing: SNMPv2-SMI::enterprises.3317.1.3.1, 
password
smux: [smux_auth_peer] Checking OID: SNMPv2-SMI::enterprises.674.10892.1 (0)
smux: [smux_auth_peer] Checking OID: SNMPv2-SMI::enterprises.3317.1.3 (1)
refused smux peer: oid SNMPv2-SMI::enterprises.3317.1.3.1, descr radiusd


-- 
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

Reply via email to