FreeRADIUS 3.0.12, Ubuntu 16.04 - Python module is unable to load
Adam Bishop
Adam.Bishop at jisc.ac.uk
Sun Jul 2 19:46:12 CEST 2017
On 2 Jul 2017, at 17:19, Cuong Nguyen <cuong.nguyenduy at gmail.com> wrote:
> Is there anything I could do to solve this? With the same script I can run
> using normal python environment (the script has the import ldap3).
There's a few possibilities, but the most likely reason is PYTHONPATH being not set correctly.
Make sure that in mods-available/python config file has the directories you need.
Keep in mind that FreeRADIUS runs as a non-root user, so make sure that you've installed the module to somewhere that the FreeRADIUS user account can read.
Have you looked at FreeRADIUS' built in LDAP module by the way?
Regards,
Adam Bishop
gpg: E75B 1F92 6407 DFDF 9F1C BF10 C993 2504 6609 D460
jisc.ac.uk
Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.
Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 2881024, VAT number GB 197 0632 86. The registered office is: One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.
More information about the Freeradius-Users
mailing list