Lun 1563

Make sure the length of the auto-generated site permissions do not exceed the maximum length of the DB field.
Mind that the Role.group_name_pattern has an '-' between the name and the domain which you didn't take into account.

Maybe add an unit test?