nagyistoce / openvpn-auth-ldap

Automatically exported from code.google.com/p/openvpn-auth-ldap
Other
0 stars 0 forks source link

OpenVPN Segmentation Fault #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install openvpn 2.0.9
2. Install auth-ldap 2.0.3
3. Start openvpn with auth-ldap plugin. Pointing to auth-ldap.conf

What is the expected output? What do you see instead?
I expect to see the daemon running.

But I see...

Segmentation fault (core dumped)

What version of the product are you using? On what operating system?

2.0.3 on Mandrake 9.1 (Old i know, but everything compiled OK.)

Please provide any additional information below.

When i un-comment the line below openvpn loads.
# plugin /opt/auth-ldap/lib/openvpn-auth-ldap.so
/opt/auth-ldap/etc/auth-ldap.conf

I also tried it with a trailing cn=%u

My auth-ldap.conf

<LDAP
        URL         ldap://10.0.0.1
        BindDN      CN=tom,CN=Users,DC=pulla,DC=local
        Password    mypassword
        Timeout     15
        TLSEnable   no
</LDAP

<Authorization
        BaseDN          "DC=pulla,DC=local"
        SearchFilter    "(cn=%u)"
        RequireGroup    false
</Authorization

I turned openvpn verb to 11 but i cant see anything strange it just dies.

Original issue reported on code.google.com by justin...@optusnet.com.au on 4 Mar 2009 at 11:46

GoogleCodeExporter commented 9 years ago
--- My openvpn logs ---

Wed Mar  4 23:36:06 2009 us=915610 PLUGIN_INIT: PRE
Wed Mar  4 23:36:06 2009 us=916014 ARGV[0] = 
'/opt/auth-ldap/lib/openvpn-auth-ldap.so'
Wed Mar  4 23:36:06 2009 us=916293 ARGV[1] = '/opt/auth-ldap/etc/auth-ldap.conf'
Wed Mar  4 23:36:06 2009 us=916572 ENVP[0] = 
'config=/opt/openvpn/etc/server.conf'
Wed Mar  4 23:36:06 2009 us=916848 ENVP[1] = 'proto=udp'
Wed Mar  4 23:36:06 2009 us=917123 ENVP[2] = 'local_port=1194'
Wed Mar  4 23:36:06 2009 us=917398 ENVP[3] = 'verb=11'
Wed Mar  4 23:36:06 2009 us=917672 ENVP[4] = 'daemon=0'
Wed Mar  4 23:36:06 2009 us=917946 ENVP[5] = 'daemon_log_redirect=1'

Original comment by justin...@optusnet.com.au on 4 Mar 2009 at 1:03

GoogleCodeExporter commented 9 years ago
checking build system type... i586-pc-linux-gnu
checking host system type... i586-pc-linux-gnu
checking target system type... i586-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... yes
checking whether gcc accepts -x objective-c... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for re2c... /usr/local/bin/re2c
checking for doxygen... no
checking for dot... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for BSD pf(4) support... no
configure: WARNING: pf(4) table support will not be included.
checking for strlcpy... no
checking for openldap... yes
checking for check unit test library... no
configure: WARNING: Check library not found. Unit tests will not be built or 
run.
checking for openvpn-plugin.h... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking how to run the Objective C preprocessor... gcc -E
checking objc/objc.h usability... yes
checking objc/objc.h presence... yes
checking for objc/objc.h... yes
checking if linking libobjc requires pthreads... no
checking for Apple Objective-C runtime... no
checking for GNU Objective C runtime... yes
configure: Using GNU Objective-C runtime
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tools/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating Mk/autoconf.mk
config.status: WARNING:  Mk/autoconf.mk.in seems to ignore the --datarootdir 
setting
config.status: creating Mk/compile.mk
config.status: creating Mk/subdir.mk
config.status: creating doxyfile
config.status: creating config.h
config.status: config.h is unchanged

Original comment by justin...@optusnet.com.au on 4 Mar 2009 at 3:30

GoogleCodeExporter commented 9 years ago
When i call the module directly

# /opt/auth-ldap/lib/openvpn-auth-ldap.so
Segmentation fault (core dumped)

Original comment by justin...@optusnet.com.au on 4 Mar 2009 at 3:35

GoogleCodeExporter commented 9 years ago
Can't reproduce locally.

Original comment by landon.j.fuller@gmail.com on 25 Feb 2012 at 11:06