OpenVPN + PAM + FreeRADIUS authenticating problem (from sticky)



  • Hello.

    I'm trying to get OpenVPN working with openvpn-auth-ldap.so plugin. I've pkg_add'ed the plugin, but I get the same error:

    Thu Sep 11 11:38:55 2008 OpenVPN 2.0.6 i386-portbld-freebsd6.2 [SSL] [LZO] built on Sep 13 2007
    Thu Sep 11 11:38:55 2008 PLUGIN_INIT: could not load plugin shared object /usr/local/lib/openvpn-auth-ldap.so: Service unavailable: Too many links (errno=31)
    Thu Sep 11 11:38:55 2008 Exiting
    

    My OpenVPN should be the "correct version" though. Is it safe to just upgrade OpenVPN anyway (I've got other, "plain" openvpn running as another instance) with "pkg_add -r"?



  • I think I found the problem:

    # ldd /usr/local/lib/openvpn-auth-ldap.so                                                                                 
    /usr/local/lib/openvpn-auth-ldap.so:                                                                                      
            libldap-2.3.so.2 => /usr/local/lib/libldap-2.3.so.2 (0x2817b000)                                                  
            liblber-2.3.so.2 => /usr/local/lib/liblber-2.3.so.2 (0x281a9000)                                                  
            libobjc.so.2 => not found (0x0)                                                                                   
            libpthread.so.2 => /lib/libpthread.so.2 (0x281b4000)                                                              
            libssl.so.4 => /usr/lib/libssl.so.4 (0x281d9000)                                                                  
            libcrypto.so.4 => /lib/libcrypto.so.4 (0x28207000)
    

    So I'll just look for the package for the right version of FreeBSD :)



  • It seems it can't be resolved that way, because libobjc.so.2 does exists on every other FreeBSD-6.2 - it's in base system. Why is it missing in pfSense? How should I get it?



  • I just copied /usr/lib/libobjc.so.2 from another FreeBSD-6.2, but it doesn't resolve the issue - still getting "Service unavailable: Too many links (errno=31)" :(



  • OK, the plugin started working when I added OpenVPN from package.


Locked