Ha right it's possible the LDAP script service is not in the default
package. You can install it using Extension Manager in administration.

Either you search and install "LDAP Admin Application" that will
trigger it as dependency or you use "Advanced search" with id
"org.xwiki.platform:xwiki-platform-ldap-api" and the version of XWiki
you have.

On Thu, Jul 31, 2014 at 5:28 PM, Pascal BASTIEN <[email protected]> wrote:
> Thanks you.
>
> In fact, I want to repopulate automaticelly my LDAP cache to avoid the time
> for my first user connexion.
> Your command seem to empty the cache containing LDAP groups .
> Anyway I didn't manage to launch it, because I obtain this error :-/
>
> javax.script.ScriptException: javax.script.ScriptException:
> java.lang.NullPointerException: Cannot invoke method resetGroupCache() on
> null object
>       at
>
>
>
>>
>> Are there a way to refresh the ldap cache by cron or scheduled script?
>
> Yes, any script can call resetGroupCache() in the LDAP script service.
> For example in a groovy scheduler job that would be:
>
> services.ldap.resetGroupCache()
>
>
>



-- 
Thomas Mortagne
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to