On Wed, Feb 2, 2011 at 19:28, Jerome Velociter <[email protected]> wrote:
Hi Juan,
If you really want to create users prior to their first login via LDAP authentication, creating the user from the administration is not enough. You must add an XWiki.LDAPProfileClass object to the user document, which precises the LDAP uid of the user. If you don't do that, a new user will be created when the person connects for the first time. This is for example what happened with your users jssmith_1, etc.
This is because without this object LDAP authenticator has no way to know that it's supposed to overwrite this perfectly valid XWiki user so it create a new one to be safe.
I have contributed an extension to allow automatic LDAP synchronization (at night for example), so admins that want to give access rights to their LDAP users don't have to create them manually. You can find it here http://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP+Tools
The synchronization feature only works starting with XWiki Enterprise 3.0 (not released yet). Though I can provide a built jar to drop in for 2.7 if anyone is interested.
Jerome.
On Wed, Feb 2, 2011 at 12:36 AM, Juan Carlos Vizueta <[email protected]> wrote:
Hi,
I added my LDAP users to Xwiki manually one by one through the Xwiki Administration form, I did that so I can add them to their corresponding groups so they have their correct user rights since their first login.
When creating a new user through the form, the password is mandatory, so I copy/pasted the user in the password field (e.g.: user jsmith and password jsmith as well).
Then when I asked the user to login, she could login correctly, but then I thought maybe I should try to login using the password I set on the form, and oh surprise, it logged in too!, is this the correct behavior or did I do something wrong here?
I need users to login only when entering their ldap password, not their xwiki password.
Thanks in advance.
JC _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne