> 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:4c23486761671948424632!