[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gnu-radius] problem with filters
From: |
List User |
Subject: |
Re: [Help-gnu-radius] problem with filters |
Date: |
Mon, 11 Aug 2003 09:10:31 -0700 |
You filter must return 0, not string 0.
Chang it liks this, instead of echo 0:
exit 0
----- Original Message -----
From: "Pawel Skiba" <address@hidden>
To: <address@hidden>
Sent: Monday, August 11, 2003 8:13 AM
Subject: [Help-gnu-radius] problem with filters
> Hello
> I am new on this list, so Welcome Everybody!
> I have GNU Radius 1.1 and I would like to invoke external program via
> Exec-Program-Wait to authorize user. Program is very simple :-) But in log
I
> am getting information "Login incorrect". When in users file is:
> user Auth-Type = Local,
> Password = password
> Service-Type = Outbound-User
> everything is OK so Radius server works properly. Permissions to script
are
> OK.
> I have studied documentation, copy examples and it does not work. I think
I
> made stupid mistake but where?
>
> My configuration:
>
> --------------start file users--------------
> DEFAULT Auth-Type = System,
> Simultaneous-Use = 1
> Exec-Program-Wait = "|check_clid"
> --------------end file users--------------
>
> --------------start file config--------------
> option {
> source-ip 10.5.1.99;
> max-requests 1024;
> };
> logging {
> channel default {
> file "radius.log";
> print-category yes;
> print-level yes;
> };
> channel info {
> file "radius.info";
> print-pid yes;
> };
> };
> auth {
> port 1812;
> listen 10.5.1.99:1812;
> max-requests 127;
> request-cleanup-delay 2;
> detail yes;
> strip-names yes;
> checkrad-assume-logged yes;
> };
> filters {
> filter check_clid {
> exec-path "/usr/local/etc/raddb/skrypty/skrypt";
> error-log "myfilter.log";
> auth {
> input-format "%C{User-Name}
> %C{Calling-Station-Id}";
> wait-reply yes;
> };
> };
> };
> --------------end file config--------------
>
> --------------start file skrypt--------------
> #! /bin/sh
> while read NAME CLID
> do
> echo "0"
> done
> --------------end file skrypt--------------
>
> Regards,
> Pawel
>
>
>
>
>
> _______________________________________________
> Help-gnu-radius mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-gnu-radius
>