Ok, My bash script returns (echo) the values 8 for ³valid dates" and 1 (reject) for ³out range dates", right? But the control are always ³ok² and even if I change the ³if² statement to any other value.. Than 8 or 1 are always "OK" Mon Jan 13 10:53:48 2014 : Debug: Exec-Program output: 8 Mon Jan 13 10:53:48 2014 : Debug: Exec-Program-Wait: plaintext: 8 Mon Jan 13 10:53:48 2014 : Debug: Exec-Program: returned: 0 How can I work with reject or allow with this script... Manually execution.. root@radius:/etc/freeradius/externals# /etc/freeradius/externals/check_date.sh 61888498536 8 What I am trying to do is: Check user passowrd and group in LDAP Verify the expire date at LDAP Reject or allow the user based with this result. This is my configuration file: http://pastebin.com/Bmgd4srE And This is the debug.. http://pastebin.com/kRcJeKkW Thank You! On 13/01/14 09:39, "Phil Mayers" <p.mayers@imperial.ac.uk> wrote:
On 13/01/14 10:52, Jean Carlos Coelho wrote:
Hi!
Is there some way to execute a shell with freeradius?
Yes. See the "exec" module that comes with the server, including the extensive comments in the example configs describing error codes and how they map to FR module codes. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html