On Tue, 14 Jun 2005, Simon Perreault wrote: > On Tuesday 14 June 2005 12:34, Simon Perreault wrote: > > I am wondering why the PAM library is dlopened by the auth-pam plugin. Why > > can't it simply be linked with it? > > More specifically, why can't the attached patch be applied?
When I was writing the auth-pam plugin, I had problems dynamically linking the plugin to PAM unless OpenVPN itself was also dynamically linked to PAM (which I didn't want to do). Remember that PAM itself is going to dlopen, in turn, the actual PAM module. Combining dlopen with dynamic linking has got to be problematic when you are dealing with crosslinked dependencies. dlopening PAM from the plugin seemed to solve all the problems, and followed the approach that others took when accessing PAM from dynamic modules. James