Thanks Thomas. I will certainly try to see if I can implement that method in the XWikiLDAPUtils class. Milind ----- Original Message ----
From: Thomas Mortagne <[email protected]> To: XWiki Users <[email protected]> Sent: Fri, February 12, 2010 4:08:57 AM Subject: Re: [xwiki-users] Need some guidance to use/access XWikiLDAPAuthServiceImpl methods via Groovy
On Thu, Feb 11, 2010 at 17:50, Milind Kamble 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users