Code Monkey home page Code Monkey logo

tinyradius4net's People

Contributors

ambroser1971 avatar luqizheng avatar

Watchers

 avatar

tinyradius4net's Issues

RadiusClient fail with password with more than 16characters

RFC 2865 says:

      Call the shared secret S and the pseudo-random 128-bit Request
      Authenticator RA.  Break the password into 16-octet chunks p1, p2,
      etc.  with the last one padded at the end with nulls to a 16-octet
      boundary.  Call the ciphertext blocks c(1), c(2), etc.  We'll need
      intermediate values b1, b2, etc.

         b1 = MD5(S + RA)       c(1) = p1 xor b1
         b2 = MD5(S + c(1))     c(2) = p2 xor b2
                .                       .
                .                       .
                .                       .
         bi = MD5(S + c(i-1))   c(i) = pi xor bi

      The String will contain c(1)+c(2)+...+c(i) where + denotes
      concatenation.

However when calculating b2, b3, b4, etc. Secret+P1, Secret+P2, Secret+P3, etc 
is used, when it should have been c(1), c(2), c(3), etc.

This means that passwords longer than 16bytes will be calculated wrong and will 
not work.

Attached is patch that fixes the problem..

Hope this help you (or someone else)

Cheers

Esben

Original issue reported on code.google.com by [email protected] on 16 May 2013 at 9:10

Attachments:

Malformed packet when sent vendor specific attribute from RuggedCom switch(ROS operating system)

What steps will reproduce the problem?
1. Configure radius server , Configure RuggedCom switch for the radius server
2. Try to login as a user other than admin user. (Attribute should contain 
vendor Specific attribute) . Make sure you have added vendor specific attribute 
for RuggedCom

VENDOR         15004   RuggedCom

VENDORATTR     15004   RuggedCom-Privilege-level      2     string

3. Throws exception in the server while reading attributes from the dictionary 
file in the server. When seen in Wireshark says malformed packet.

What is the expected output? What do you see instead?
Should read the vendor specific attribute

What version of the product are you using? On what operating system?
tinyradius for .net in windows 7

Please provide any additional information below.
Am not sure whehter i have latest version. Please provide link to the latest 
version if there is any.

Original issue reported on code.google.com by [email protected] on 4 Feb 2014 at 10:51

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.