[Pkg-freeradius-maintainers] Bug#869682: Bug#869682: freeradius: Import ldap module in python_rlm freeradius crash
Michael Stapelberg
stapelberg at debian.org
Tue Jul 25 16:20:34 UTC 2017
[+cc debian-python]
Sorry, I have no idea what’s going wrong here or how to fix this. Maybe the
debian-python team can help?
On Tue, Jul 25, 2017 at 5:32 PM, Gabriel Detraz <detraz at crans.org> wrote:
> Package: freeradius
> Version: 3.0.12+dfsg-5
> Severity: normal
>
> Dear Maintainer,
>
> I think there is a problem with python module of freeradius3, in the
> actual build
> (Python version: 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0
> 20170118])
>
> In particular, "import ldap" directive in a python file linked with the
> python module
> make it crash with this error code when we start freeradius with
> freeradius -X in particular :
>
> Python version: 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0
> 20170118]
> Failed loading libpython symbols into global symbol table: libpython2.7.so:
> cannot open shared object file: No such file or directory
> python_function_load - Module 'auth3' not found
> <type 'exceptions.ImportError'> (/usr/lib/python2.7/dist-packages/_
> ldap.x86_64-linux-gnu.so: undefined symbol: PyExc_SystemError)
> python_function_load - Failed to import python function 'auth3.instantiate'
>
>
> Here is the auth3.py file :
> (very simple for testing purpose)
>
> # ⁻*- mode: python; coding: utf-8 -*-
> """
> Backend python pour freeradius.
>
> Ce fichier contient la définition de plusieurs fonctions d'interface à
> freeradius qui peuvent être appelées (suivant les configurations) à
> certains
> moment de l'authentification, en WiFi, filaire, ou par les NAS eux-mêmes.
>
> Inspirés d'autres exemples trouvés ici :
> https://github.com/FreeRADIUS/freeradius-server/blob/master/
> src/modules/rlm_python/
> """
>
> import netaddr
> import radiusd # Module magique freeradius (radiusd.py is dummy)
> import ldap
>
>
> Moreover, import ldap doesn't crash in a "normal" ipython shell, so the
> problem seems to
> be with the build of freeradius python module.
>
>
> *** Reporter, please consider answering these questions, where appropriate
> ***
>
> * What led up to the situation?
> * What exactly did you do (or not do) that was effective (or
> ineffective)?
> * What was the outcome of this action?
> * What outcome did you expect instead?
>
> *** End of the template - remove these template lines ***
>
>
> -- System Information:
> Debian Release: 9.1
> APT prefers stable
> APT policy: (500, 'stable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 4.9.0-3-amd64 (SMP w/1 CPU core)
> Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored:
> LC_ALL set to fr_FR.UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8) (ignored:
> LC_ALL set to fr_FR.UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages freeradius depends on:
> ii freeradius-common 3.0.12+dfsg-5
> ii freeradius-config 3.0.12+dfsg-5
> ii libc6 2.24-11+deb9u1
> ii libcap2 1:2.25-1
> ii libfreeradius3 3.0.12+dfsg-5
> ii libgdbm3 1.8.3-14
> ii libpam0g 1.1.8-3.6
> ii libpcre3 2:8.39-3
> ii libperl5.24 5.24.1-3+deb9u1
> ii libpython2.7 2.7.13-2
> ii libreadline7 7.0-3
> ii libsqlite3-0 3.16.2-5
> ii libssl1.1 1.1.0f-3
> ii libtalloc2 2.1.8-1
> ii libwbclient0 2:4.5.8+dfsg-2+deb9u1+b1
> ii lsb-base 9.20161125
>
> Versions of packages freeradius recommends:
> ii freeradius-utils 3.0.12+dfsg-5
>
> Versions of packages freeradius suggests:
> pn freeradius-krb5 <none>
> pn freeradius-ldap <none>
> pn freeradius-mysql <none>
> pn freeradius-postgresql <none>
> ii snmp 5.7.3+dfsg-1.7
>
> -- no debconf information
> _______________________________________________
> Pkg-freeradius-maintainers mailing list
> Pkg-freeradius-maintainers at lists.alioth.debian.org
> https://lists.alioth.debian.org/mailman/listinfo/pkg-
> freeradius-maintainers
>
--
Best regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-freeradius-maintainers/attachments/20170725/2b37f843/attachment.html>
More information about the Pkg-freeradius-maintainers
mailing list