Add support for RADIUS passwords longer than 16 octets

Started by Marko Tiikkajaover 10 years ago3 messageshackers
Jump to latest
#1Marko Tiikkaja
marko@joh.to

Hi,

The attached patch adds support for RADIUS passwords longer than 16 octets.

.m

Attachments:

radius_long_passwords.patchtext/plain; charset=UTF-8; name=radius_long_passwords.patch; x-mac-creator=0; x-mac-type=0Download+65-63
#2Marko Tiikkaja
marko@joh.to
In reply to: Marko Tiikkaja (#1)
Re: Add support for RADIUS passwords longer than 16 octets

On 2015-08-15 17:55, I wrote:

The attached patch adds support for RADIUS passwords longer than 16 octets.

Improved the coding and comments a bit, new version attached.

.m

Attachments:

radius_long_passwords.v2.patchtext/plain; charset=UTF-8; name=radius_long_passwords.v2.patch; x-mac-creator=0; x-mac-type=0Download+59-57
#3Magnus Hagander
magnus@hagander.net
In reply to: Marko Tiikkaja (#2)
Re: Add support for RADIUS passwords longer than 16 octets

On Tue, Aug 18, 2015 at 11:36 PM, Marko Tiikkaja <marko@joh.to> wrote:

On 2015-08-15 17:55, I wrote:

The attached patch adds support for RADIUS passwords longer than 16
octets.

Improved the coding and comments a bit, new version attached.

Looks good to me. Applied, thanks!

As a note - psql truncates passwords at 100 characters when it reads it
from the problem (in the connstr it's fine). Not sure we care enough to
change that, though - I doubt it's a very common usecase for psql...

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/