Max length for User-Name

Adam Bishop Adam.Bishop at jisc.ac.uk
Fri Jan 27 16:39:32 CET 2017


On 27 Jan 2017, at 15:26, Joe Friedeggs <friedeggs44 at hotmail.com> wrote:
> which recommends 'at least' 63 octets, but I see the sql (ver 2.2.6 with postgresql) set the limits the UserName to 'at most' 64 characters:

2.2 is EoL. 3.0.x uses the text type for username:

  CREATE TABLE radcheck (
  	id			serial PRIMARY KEY,
  	UserName		text NOT NULL DEFAULT '',
  	Attribute		text NOT NULL DEFAULT '',
  	op			VARCHAR(2) NOT NULL DEFAULT '==',
  	Value			text NOT NULL DEFAULT ''
  );

> What is the reasoning behind this?

Someone decided that '64' was a cooler looking number than '30' 12 years ago:
  https://github.com/FreeRADIUS/freeradius-server/commit/fa493402ac9e2d8d401b924a6372e73bf3ba8c7a

Regards,

Adam Bishop

  gpg: E75B 1F92 6407 DFDF 9F1C  BF10 C993 2504 6609 D460

jisc.ac.uk

Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.

Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 2881024, VAT number GB 197 0632 86. The registered office is: One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.  




More information about the Freeradius-Users mailing list