CreateUserFromLDAP in LDAPAuthServiceImpl

Philippe Legrain legrain at gmail.com
Tue Nov 7 16:46:50 CET 2006


Hi,

In the LdapAuthServiceImpl , as far as I understand it, everytime a user is
authentified, the method CreateUserFromLDAP is called, wich in turn creates
a user page in the wiki.  The creation is done regardless of wether te page
already exists or not in the wiki, increasing its version number upon every
call to authenticate (which is called quite often).

I tried to do use the doc.isNew() method to try to avoid creating a user
page when it already exists, but the isNew appear to always return false
after the doc creation using this line:
XWikiDocument doc = context.getWiki().getDocument(fullwikiname, context);

Is that correct? Is there a way to avoid updating the user's document upon
every authentification?

Thanks,

Philippe Legrain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/devs/attachments/20061107/74a3cd03/attachment.htm 


More information about the devs mailing list