Alan,

Thanks for your help!  That did answer my question.

I've now got the server configured, but I'm having a problem
authenticating users.  I keep getting a "No Password configured for the
user" error.  Being used to Cistron/XtRadius I'm not familiar with the
radiusd.conf file and it is a little confusing so I may easily have
something wrong.

If anyone could take a look at the users file and debug output that I've
included below and let me know if they see a problem I would very much
appreciate it.  I know it's probably a simple configuration error, but
I've been messing with it for awhile now and can't find the solution.

Thanks in advance for your help!


Here is my "users" file:
------------------------
test    Auth-Type := Local, Password == "12345"
        Service-Type = Framed-User,
        Framed-Protocol = PPP,
        Framed-Compression = Van-Jacobson-TCP-IP,
        Framed-MTU = 1500

DEFAULT Auth-Type := Local
        Exec-Program-Wait = "/path/to/auth",
        Fall-Through = Yes

DEFAULT Auth-Type := Local
        Service-Type = Framed-User,
        Framed-Protocol = PPP,
        Framed-Compression = Van-Jacobson-TCP-IP,
        Framed-MTU = 1500,
        Idle-Timeout = 900,
        Session-Timeout = 28800,


Here is the debug output that the server returns when I send a test
authentication request.
--------------------------
Starting - reading configuration files ...
reread_config:  reading radiusd.conf
Config:   including file: /export/home/radius/raddb/clients.conf
 main: prefix = "/export/home/radius"
 main: localstatedir = "/var"
 main: logdir = "/export/home/radius/log"
 main: libdir = "/export/home/radius/lib"
 main: radacctdir = "/export/home/radius/log/radacct"
 main: hostname_lookups = no
read_config_files:  reading dictionary
read_config_files:  reading clients
read_config_files:  reading realms
read_config_files:  reading naslist
 main: max_request_time = 30
 main: cleanup_delay = 5
 main: max_requests = 2048
 main: delete_blocked_requests = 0
 main: port = 1645
 main: allow_core_dumps = no
 main: log_stripped_names = no
 main: log_auth = yes
 main: log_auth_badpass = yes
 main: log_auth_goodpass = no
 main: pidfile = "/var/run/radiusd.pid"
 main: bind_address = 192.168.0.1 IP address [192.168.0.1]
 main: user = "root"
 main: group = "root"
 main: usercollide = no
 main: lower_user = "no"
 main: lower_pass = "no"
 main: nospace_user = "no"
 main: nospace_pass = "no"
 main: proxy_requests = no
 main: debug_level = 0
read_config_files:  entering modules setup
Module: Library search path is /export/home/radius/lib
Module: Loaded System
 unix: cache = no
 unix: passwd = "/etc/passwd"
 unix: shadow = "/etc/shadow"
 unix: group = "/etc/group"
 unix: radwtmp = "/export/home/radius/log/radwtmp"
 unix: usegroup = no
 unix: cache_reload = 600
Module: Instantiated unix (unix)
Module: Loaded preprocess
 preprocess: huntgroups = "/export/home/radius/raddb/huntgroups"
 preprocess: hints = "/export/home/radius/raddb/hints"
 preprocess: with_ascend_hack = no
 preprocess: ascend_channels_per_line = 23
 preprocess: with_ntdomain_hack = no
 preprocess: with_specialix_jetstream_hack = no
 preprocess: with_cisco_vsa_hack = no
Module: Instantiated preprocess (preprocess)
Module: Loaded realm
 realm: format = "suffix"
 realm: delimiter = "@"
Module: Instantiated realm (suffix)
Module: Loaded files
 files: usersfile = "/export/home/radius/raddb/users"
 files: acctusersfile = "/export/home/radius/raddb/acct_users"
 files: compat = "no"
Module: Instantiated files (files)
Module: Loaded detail
 detail: detailfile =
"/export/home/radius/log/radacct/%{Client-IP-Address}/detail"
 detail: detailperm = 384
 detail: dirperm = 493
Module: Instantiated detail (detail)
Initializing the thread pool...
 thread: start_servers = 5
 thread: max_servers = 32
 thread: min_spare_servers = 3
 thread: max_spare_servers = 10
 thread: max_requests_per_server = 300
 thread: cleanup_delay = 5
Thread spawned new child 1. Total threads in pool: 1
Thread spawned new child 2. Total threads in pool: 2
Thread 1 waiting to be assigned a request
Thread 2 waiting to be assigned a request
Thread 3 waiting to be assigned a request
Thread spawned new child 3. Total threads in pool: 3
Thread spawned new child 4. Total threads in pool: 4
Thread spawned new child 5. Total threads in pool: 5
Listening on IP address 192.168.0.1, ports 1645/udp and 1646/udp.
Ready to process requests.
Thread 4 waiting to be assigned a request
Thread 5 waiting to be assigned a request
rad_recv: Access-Request packet from host 192.168.0.2:1026, id=102,
length=88
Thread 1 assigned request 0
--- Walking the entire request list ---
Threads: total/active/spare threads = 5/1/4
Thread 1 handling request 0, (1 handled so far)
        User-Name = "test"
        Password = "\331\363h\032\364v\321V6I\244u\231\034\024Q"
        NAS-Port = 1645
        LE-Terminate-Detail = "test"
        LE-Advice-of-Charge = "TiNC"
        USR-Terminal-Type = "test"
        NAS-IP-Address = 192.168.0.2
modcall: entering group authorize
  modcall[authorize]: module "preprocess" returns ok
  modcall[authorize]: module "suffix" returns ok
    users: Matched DEFAULT at 56
    users: Matched DEFAULT at 60
  modcall[authorize]: module "files" returns ok
modcall: group authorize returns ok
  rad_check_password:  Found Auth-Type Local
auth: type Local
auth: No Password configured for the user
No Password configured for the user: [test/12345] (from nas
local-network-1 port 1645)
auth: Failed to validate the user.
Login incorrect: [test/12345] (from nas local-network-1 port 1645)
Sending Access-Reject of id 102 to 192.168.0.2:1026
Finished request 0

---------------------------


On Fri, 11 Jan 2002 [EMAIL PROTECTED] wrote:

> Darren Nay <[EMAIL PROTECTED]> wrote:
> > Thanks for your reply.  I am still a little confused though.  As I look at
> > the configuration I see that I can use the following as arguments for
> > Exec-Program.
>
>   ... That doesn't really matter.
>
>   See 'scripts/exec-program-wait' in the latest CVS snapshot.
>
>   You can see ALL of the radius attributes as environment variables.
>
> > It looks as if I'm not able to do that.  I would also need the
> > CHAP-CHALLENGE-PHRASE for CHAP encrypted passwords.  Is it possible to get
> > this information in an external script?
>
>   Why?  You can do CHAP authentication in the server core.
>
> > Also, I don't see a way to call an external script to handle accounting
> > packets.  Is that possible?  If so, how?
>
>   Yes, it's possible.  See the 'acct_users' file.   Go read the
> 'scripts/exec-program-wait' script.
>
>   Alan DeKok.
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>


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

Reply via email to