help-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gnu-radius] problem with filters


From: Pawel Skiba
Subject: [Help-gnu-radius] problem with filters
Date: Mon, 11 Aug 2003 17:13:13 +0200

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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]