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.
Thanks,
Milind