Happy new year and good health to all.
Personally, I like the idea to login via the email address instead of an arbitrary user name. And yes, I’m aware that the mail address of a user might change … but this also applies to names (like marriage). This all depends on who is using the wiki (internal, public, …)
As it is not possible to create a user with an @ in the username with xwiki, I thought maybe it is possible to emulate this via LDAP?
As the authentication using the email address will probably work out, I’m not sure how this will then be mapped to an xwiki user?
There are two scenario on first sight:
(1) User already exists in xwiki
(2) User does not exist in xwiki upon first login
For the first case, one will probably need to manually populate the UID for that user in the Wiki.LDAPProfileClass UID if this is still used that way … and if this accepts an email address …
Just didn’t see how this then will be translated to a xwiki object in case the user does not already exists in xwiki but in LDAP? Does someone has some insight on this? Thomas
Although depending on the LDAP server in use, as of
some cases suggest to use the “cn” or “uid”. From what I know, some directories do NOT enforce uniqueness on those attributes - how is this handled? Is in this case the DN compared or what is the DN used for?
Further, uid and cn might contain characters that are not supported as username in xwiki either - what happens then?
IMHO, one approach might be to replace the @ with a supported character like “_” for the users created (maybe something like that already happens for other non supported characters)?