[xwiki-devs] username constraint ?
deepres at man.poznan.pl
Wed Mar 2 10:14:16 UTC 2011
W dniu 11-03-02 09:16, Denis Gervalle wrote:
> On Wed, Mar 2, 2011 at 00:43, Sergiu Dumitriu<sergiu at xwiki.com> wrote:
>> On 03/01/2011 07:28 PM, Kevin P. Foote wrote:
>>> Hi all,
>>> Is there a reason (programmaticly / syntacticaly) why a user can not be
>> named as
>>> kpfoote at something.org
>>> When I try to do this through the UI I get returned the message that
>>> states usernames can not contain "@" symbol.
>>> Is there a system level reason this can not happen?
>> None that I know of at the moment, but in the past there were some
>> limitations. Maybe in a future version we could allow any character in
>> the user's name.
> Well, the @ is not the main problem here, but the dot is far more
> problematic since AFAIK most of the right management code does not currently
> work with references and the dot is considered a separator between space and
> document names. So, until the point where that legacy code is replaced,
> using email address as usernames is impossible. At Softec, we have had a try
> with release 2.4, and we have abandoned.
> To mitigate that issue, I am currently patching login.vm to replace dots by
> underscores, and we have our own registration procedures that accepts @ and
> dots in names as well, doing the same replacement.
Exactly, for example when using LDAP plugin to create new users, you can use their mail/pass to authenticate
but in the end username in xwiki will look like:
before (login) : user at aa.bb.com
after (xwiki): user at aabbcom
More information about the devs