[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: Using rlm_perl freeradiis 3.0.11
From:       Cornelius =?ISO-8859-1?Q?K=F6lbel?= <cornelius.koelbel () netknights ! it>
Date:       2016-05-30 12:15:49
Message-ID: 1464610549.22617.20.camel () puckel
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


In mods-available/perl you reference your perl module.

And your perl module contains the functions

  sub authenticate()

etc.

Then you need to specify that the authenticate section should use Perl.
There are several ways of doing this.

You may take a look at this rlm_perl compatible module:
https://github.com/privacyidea/FreeRADIUS/blob/f6fa2ac72b77a82c7d232f96128524b3b192461c/privacyidea_radius.pm


Kind regards
Cornelius

Am Montag, den 30.05.2016, 14:59 +0300 schrieb khouzam.yaghi@gmail.com:
> I read the documentation for rlm_perl but i didnt understand where should i write \
> the function , in /mods-available/perl i should uncomment the function i want and \
> then i write it in example.pl , or i should write in the same file \
> (/mods-available/perl) ??? 
> Also after writting the function i just add perl in the specified section in \
> sites-available/default?? 
> Thanks in advance.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

-- 
Cornelius Kölbel
cornelius.koelbel@netknights.it
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel


["signature.asc" (application/pgp-signature)]
[Attachment #6 (text/plain)]

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic