2013/1/17 Natan Sanson <[email protected]>: > Thank you all. > A last question. > > To flush privileges I was thinking about > > syncHook: fully qualified name of a static method to invoke after the > synchronization task > > Should I put in the classpath a jar with a custom class where I have to > define a sendFlushPrivileges() that open an ssh session to the mysql server > and instruct a "FLUSH PRIVILEGES"? And then add to my task > > <synchHook>org.mynamespace.Myclass.sendFlushPrivileges()</syncHook> > > In your opinion Is it feasible? >
I have not tested syncHook in LSC 2.0, I am not sure it works great, it would be nice if you can test it and open bug request if needed. But I think syncHook is exectued after each entry sync, and you need to flush privileges after the whole sync no? > However before doing this I will check the iBatis documentation > If I was you, I would just call flush privileges with a mysql command in the cron job you use to launch the LSC task; Clément. _______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

