LDAP-166: Can't authenticate if ldap user has attribute with length g…#51
LDAP-166: Can't authenticate if ldap user has attribute with length g…#51trrenty wants to merge 2 commits intoxwiki-contrib:masterfrom
Conversation
…reater than 768 characters
|
Well, first, note that using a hardcoded Now on the general logic, as you mentioned, there is not much magic. I have the filling that cutting probably does not really make much sense for most of those fields (an email to which it's missing the end is totally unusable, and it does not make much more sense for the first or last name, for example). But not sure setting an empty value is more helpful in practice (at least you see something was set, but it was apparently too big) so I guess trimming with a warning is the less bad generic option. I guess we could imagine some property in {{xwiki.properties}} to control this behavior, possibly per field, but could probably be an improvement for later. |
…reater than 768 characters
Fixes: jira.xwiki.org/browse/LDAP-166
I don't like the idea of trimming the value like that but im not sure of what other solution we might have. Any thoughts, @tmortagne ?