Increase length of username column to 255 to support shibboleth/SSO userIDs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Hugh Davenport |
Bug Description
get_new_username in lib/user.php truncates username to 30 characters by default. In some cases this is too short.
As an example I have modified the SimpleSAMLPhP authenticator to use the Internet2 Shibboleth SAML service provider (SP). In cases where the eduPersonPrinci
30 characters is far to small to handle this and more over the varchar(100) username field in the various tables like 'usr' will impact on this issue aswell.
My guess is that you should be looking atleast 256 or 512 characters for this.
PS. This is an issue for both SSP and Shibboleth.
This bug was imported from eduforge.org, see:
https:/
Changed in mahara: | |
status: | Confirmed → Triaged |
Changed in mahara: | |
status: | Triaged → Incomplete |
Changed in mahara: | |
assignee: | nobody → Hugh Davenport (hugh-catalyst) |
status: | Confirmed → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
I hope people don't type these in at the login box :D
We can enlargen the column. I think the 30 character limit is merely to prevent users being silly, than for a technical reason.
Note to whomever fixes the bug: The column does have to be larger than the maximum allowed size, because if the user is deleted, we have append '.deleted. [timestamp] ' to their username (so the username can be reused by a new account).