On Thu, Feb 11, 2010 at 17:50, Milind Kamble <mbkads(a)yahoo.com> wrote:
We are using LDAP authentication scheme and are trying
to develop a feature wherein we can register any given user before he/she authenticates
for the first time. This will allow us to add users to appropriate access control lists so
that they are fully setup before they ever authenticate.
To do so, I was thinking of using Groovy to access the XWikiLDAPAuthServiceImpl class to
perform functions such as first verifying that the LDAP uid is valid and then perform the
actual creation using createUserFromLDAP() method call.
I am unable to get basic Groovy access to any method in the above class working. I would
appreciate if someone could guide me with the basic skeleton to access the class or maybe
even the actual authenticator object in the current context.
The method you are trying to use in XWikiLDAPAuthServiceImpl are
protected methods so you will have to create a groovy class that
extends XWikiLDAPAuthServiceImpl to be able to use it.
Note that i just created
http://jira.xwiki.org/jira/browse/XWIKI-4885
that i should have done a long time ago but never found the time. I
will try to do it in the 2.3 timeframe. If you want to do it i would
be glad to apply a patch instead of doing it myself ;)
Thanks,
Milind
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne