Menu

#5 RadiusLoginModule for JAAS broken

v1.0 (example)
open
nobody
None
7
2007-04-09
2007-04-09
No

The username/password returned from the corresponding callback handlers returned null.
This was due to a bug in the code.
Instead of retrieving the ussername/passwords by accessing the callbacks updated in the array, it tried to access the default NameCallback and PasswordCallback instead.

The attached source file corrects this.

Also, I added some default parameters for the Radius client in case the configuration did not supply some. This is especially important for the authPort and acctPort parameters as they are declared as "optional" but in case they are not supplied will be set as zero!

Discussion

  • Ulrich Romahn

    Ulrich Romahn - 2007-04-09

    Updated 'RadiusLoginModule.java'

     
  • Ulrich Romahn

    Ulrich Romahn - 2007-04-09
    • priority: 5 --> 7
     

Log in to post a comment.

MongoDB Logo MongoDB