Hi all,
 I am a newbie with radius and unix, I would like to install freeradius =
 in RedHat 7.1 and I use a router to authenicate via radius. I installed =
 ok, but I could not authenticate success. I configured authentication =
 use unix module.
 I wrote here what I saw when run radius -X and thank a lot for you help
 
[EMAIL PROTECTED] raddb]# /usr/local/sbin/radiusd -X
 Starting - reading configuration files ...
 reread_config:  reading radiusd.conf
 Config:   including file: /usr/local/etc/raddb/clients.conf
 Config:   including file: /usr/local/etc/raddb/sql.conf
  main: prefix =3D "/usr/local"
  main: localstatedir =3D "/usr/local/var"
  main: logdir =3D "/usr/local/var/log/radius"
  main: libdir =3D "/usr/local/lib"
  main: radacctdir =3D "/usr/local/var/log/radius/radacct"
  main: hostname_lookups =3D 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 =3D 30
  main: cleanup_delay =3D 5
 main: max_requests =3D 1024
  main: delete_blocked_requests =3D 0
  main: port =3D 1645
  main: allow_core_dumps =3D no
  main: log_stripped_names =3D yes
  main: log_auth =3D yes
  main: log_auth_badpass =3D yes
  main: log_auth_goodpass =3D yes
  main: pidfile =3D "/usr/local/var/run/radiusd/radiusd.pid"
  main: bind_address =3D 172.16.5.5 IP address [172.16.5.5]
  main: user =3D "root"
  main: group =3D "root"
  main: usercollide =3D no
  main: lower_user =3D "no"
  main: lower_pass =3D "no"
  main: nospace_user =3D "no"
  main: nospace_pass =3D "no"
  main: proxy_requests =3D no
  security: max_attributes =3D 200
  security: reject_delay =3D 1
  main: debug_level =3D 0
 read_config_files:  entering modules setup
 Module: Library search path is /usr/local/lib
 Module: Loaded System=20
  unix: cache =3D yes
  unix: passwd =3D "/etc/passwd"
  unix: shadow =3D "/etc/shadow"
  unix: group =3D "/etc/group"
  unix: radwtmp =3D "/usr/local/var/log/radius/radwtmp"
  unix: usegroup =3D no
  unix: cache_reload =3D 600
 HASH:  Reinitializing hash structures and lists for caching...
   HASH:  user root found in hashtable bucket 11726
   HASH:  user bin found in hashtable bucket 86651
   HASH:  user daemon found in hashtable bucket 11668
   HASH:  user adm found in hashtable bucket 26466
   HASH:  user lp found in hashtable bucket 54068
   HASH:  user sync found in hashtable bucket 42895
   HASH:  user shutdown found in hashtable bucket 71746
   HASH:  user halt found in hashtable bucket 7481
   HASH:  user mail found in hashtable bucket 79471
   HASH:  user news found in hashtable bucket 5375
   HASH:  user uucp found in hashtable bucket 38541
   HASH:  user operator found in hashtable bucket 21748
   HASH:  user games found in hashtable bucket 47657
   HASH:  user gopher found in hashtable bucket 47357
   HASH:  user ftp found in hashtable bucket 56226
   HASH:  user nobody found in hashtable bucket 99723
   HASH:  user nscd found in hashtable bucket 36306
   HASH:  user mailnull found in hashtable bucket 78086
   HASH:  user ident found in hashtable bucket 40304
   HASH:  user rpc found in hashtable bucket 72373
   HASH:  user xfs found in hashtable bucket 17213
   HASH:  user gdm found in hashtable bucket 50360
   HASH:  user postgres found in hashtable bucket 19301
   HASH:  user apache found in hashtable bucket 26582
   HASH:  user amanda found in hashtable bucket 72438
   HASH:  user ldap found in hashtable bucket 45563
   HASH:  user pvm found in hashtable bucket 78527
   HASH:  user squid found in hashtable bucket 62826
   HASH:  user hao found in hashtable bucket 47290
   HASH:  user teo found in hashtable bucket 26706
 HASH:  Stored 30 entries from /etc/passwd
 HASH:  Stored 40 entries from /etc/group
 Module: Instantiated unix (unix)=20
 Module: Loaded preprocess=20
  preprocess: huntgroups =3D "/usr/local/etc/raddb/huntgroups"
  preprocess: hints =3D "/usr/local/etc/raddb/hints"
  preprocess: with_ascend_hack =3D no
  preprocess: ascend_channels_per_line =3D 23
  preprocess: with_ntdomain_hack =3D no
  preprocess: with_specialix_jetstream_hack =3D no
  preprocess: with_cisco_vsa_hack =3D no
 Module: Instantiated preprocess (preprocess)=20
 Module: Loaded realm=20
  realm: format =3D "suffix"
  realm: delimiter =3D "@"
 Module: Instantiated realm (suffix)=20
 Module: Loaded files=20
  files: usersfile =3D "/usr/local/etc/raddb/users"
  files: acctusersfile =3D "/usr/local/etc/raddb/acct_users"
  files: compat =3D "no"
 Module: Instantiated files (files)=20
 Module: Loaded detail=20
  detail: detailfile =3D =
 "/usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail"
  detail: detailperm =3D 384
  detail: dirperm =3D 493
  detail: locking =3D no
 Module: Instantiated detail (detail)=20
 Module: Loaded radutmp=20
  radutmp: filename =3D "/usr/local/var/log/radius/radutmp"
  radutmp: username =3D "%{Stripped-User-Name:-%{User-Name}}"
  radutmp: perm =3D 384
  radutmp: callerid =3D yes
 Module: Instantiated radutmp (radutmp)=20
  main: smux_password =3D ""
  main: snmp_write_access =3D no
 SMUX connect try 1
 Can't connect to SNMP agent with SMUX: Connection refused
 Listening on IP address 172.16.5.5, ports 1645/udp and 1646/udp.
 Ready to process requests.
 rad_recv: Access-Request packet from host 172.16.5.1:1645, id=3D99, =
 length=3D73
         NAS-IP-Address =3D 172.16.5.1
         NAS-Port =3D 66
         NAS-Port-Type =3D Virtual
         User-Name =3D "hao"
         Calling-Station-Id =3D "172.16.5.3"
         User-Password =3D =
 "\312\342\342\313j\010y\212\324\201\214\352\340\360\205"
 modcall: entering group authorize
   modcall[authorize]: module "preprocess" returns ok
     rlm_realm: Looking up realm NULL for User-Name =3D "hao"
     rlm_realm: No such realm NULL
   modcall[authorize]: module "suffix" returns noop
     users: Matched DEFAULT at 152
   modcall[authorize]: module "files" returns ok
 modcall: group authorize returns ok
   rad_check_password:  Found Auth-Type System
 auth: type "System"
 modcall: entering group authenticate
   HASH:  user hao found in hashtable bucket 47290
   modcall[authenticate]: module "unix" returns reject
 modcall: group authenticate returns reject
 auth: Failed to validate the user.
 Login incorrect: [hao/\236\232M\236s<\3121\211\214\344\347"+\214\031] =
 (from client pascal port 66 cli 172.16.5.3)
   WARNING: Unprintable characters in the password. ?  Double-check the =
 shared secret on the server and the NAS!
 Delaying request 0 for 1 seconds
 Finished request 0
 Going to the next request
nhuhao

Reply via email to