Perfect! The following worked: I defined openvpn_plugin_select_initialization_point_v1() to return OPENVPN_PLUGIN_INIT_POST_DAEMON and now it all works since the plugin invocation now gets delayed to be after the daemon thread starts up.
Thanks a lot, Vineet On Thu, Jun 24, 2010 at 4:58 AM, chantra <chan...@debuntu.org> wrote: > The reason is obviously the fact that the thread-creation occurred > *before* the daemon() call (that forked off a child which has no way > of inheriting a copy of that thread). > So does this mean then that the ovpn daemon infrastructure will only > work with plugins that don't do threading of their own? > > You might want to look at > openvpn_plugin_select_initialization_point_v1 function > > as done here > > http://redmine.debuntu.org/projects/openvpn-ldap-auth/repository/revisions/master/entry/src/ldap-auth.c#L430 > > -- http://www.debuntu.org > > !DSPAM:4c23486761678150054016! >