Your message dated Mon, 10 Feb 2025 22:17:19 +0100
with message-id <[email protected]>
and subject line Closing obsolete FreeRADIUS bugs
has caused the Debian Bug report #869682,
regarding freeradius: Import ldap module in python_rlm freeradius crash
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
869682: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869682
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Dear submitter,
thanks for submitting a bug report against the Debian FreeRADIUS
package. Your bug has been filed for an ancient version of FreeRADIUS
(in Debian) that has not been supported anymore for years. I'm sorry we
could not take care of it in time.
If you can still reproduce this problem on a current version (at least
in 3.2.1 shipped with Debian 12 aka bookworm), please reopen this bug.
Bernhard
--- End Message ---