Freeradius-Users Digest, Vol 15, Issue 45

Kun Niu haoniukun at gmail.com
Fri Jul 14 05:56:23 CEST 2006


But still, you can try as he said.:-(
> ------------------------------
>
> Message: 4
> Date: Thu, 13 Jul 2006 23:16:35 -0400
> From: Gary.Blydenburgh at interactivedata.com
> Subject: Re: Crypt-Password Problem
> To: FreeRadius users mailing list
>        <freeradius-users at lists.freeradius.org>
> Message-ID:
>        <OF8C3DA2DE.C826ABAC-ON852571AB.0011AF0E-852571AB.0011FF75 at interactivedata.com>
>
> Content-Type: text/plain; charset=US-ASCII
>
>
>
> freeradius-users-bounces+gary.blydenburgh=interactivedata.com at lists.freeradius.org
>  wrote on 07/13/2006 11:06:56 PM:
>
> > Quoting Gary.Blydenburgh at interactivedata.com:
> >
> > >
> > > Excuse me if this has been asked before but I am having a hard time
> finding
> > > it in the archives.  I have a script that builds a radius users file
> out of
> > > a htpasswd file, the password entries are encrypted.  This worked great
> on
> > > a Redhat Enterprise AS 3 server running freeradius-0.9.3. I have since
> had
> > > to upgrade my linux box (to RHEL 4) and used the version that came with
> it,
> > > freeradius-1.0.1.  Now users can not authenticate.
> > >
> > > Here is an entry for the user in the USERS file:
> > >
> > > juser  Auth-Type := Local, Crypt-Password == "H25nfgL4rCxBY"
> > >         Service-Type = Framed-User,
> > >         Framed-Protocol = PPP,
> > >
> >
> > Here is the problem in your debugging data.
> >
> > rad_recv: Access-Request packet from host 172.24.0.14:36180, id=72,
> > length=46
> >         User-Name = "user"
> >         User-Password = "password"
> >
> > The password is coming through as User-Password, NOT Crypt-Password.  So,
> it
> > matches nothing in the users file.  Furthermore, probably in plain text
> not
> > encrypted form like you expect.
> >
> > Chris Carver
> > Network Engineer
> >
> >
> > -
> > List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
> First off Chris thank you for responding to me email so quickly.
>
> Here is a DEBUG from the 0.9.3 server that is still working, using the same
> users file, and same client request. Here you see the same User-Password
> but further down you see:
>        rad_check_password:  Found Auth-Type Local
>      auth: type Crypt
>      Login OK: [d4lane] (from client slpma1nagioswan port 0)
>
>
> FULL DEBUG BELOW:
> [root at slpma1ldap01 raddb]# /usr/local/sbin/radiusd -X
> Starting - reading configuration files ...
> reread_config:  reading radiusd.conf
> Config:   including file: /usr/local/etc/raddb/proxy.conf
> Config:   including file: /usr/local/etc/raddb/clients.conf
> Config:   including file: /usr/local/etc/raddb/snmp.conf
> Config:   including file: /usr/local/etc/raddb/sql.conf
>  main: prefix = "/usr/local"
>  main: localstatedir = "/usr/local/var"
>  main: logdir = "/var/log/radius"
>  main: libdir = "/usr/local/lib"
>  main: radacctdir = "/var/log/radius/radacct"
>  main: hostname_lookups = no
>  main: max_request_time = 30
>  main: cleanup_delay = 5
>  main: max_requests = 1024
>  main: delete_blocked_requests = 0
>  main: port = 0
>  main: allow_core_dumps = no
>  main: log_stripped_names = no
>  main: log_file = "/var/log/radius/radius.log"
>  main: log_auth = yes
>  main: log_auth_badpass = yes
>  main: log_auth_goodpass = no
>  main: pidfile = "/var/run/radiusd.pid"
>  main: user = "(null)"
>  main: group = "(null)"
>  main: usercollide = no
>  main: lower_user = "no"
>  main: lower_pass = "no"
>  main: nospace_user = "no"
>  main: nospace_pass = "no"
>  main: checkrad = "/usr/local/sbin/checkrad"
>  main: proxy_requests = yes
>  proxy: retry_delay = 5
>  proxy: retry_count = 3
>  proxy: synchronous = no
>  proxy: default_fallback = yes
>  proxy: dead_time = 120
>  proxy: post_proxy_authorize = yes
>  proxy: wake_all_if_all_dead = no
>  security: max_attributes = 200
>  security: reject_delay = 1
>  security: status_server = no
>  main: debug_level = 0
> read_config_files:  reading dictionary
> read_config_files:  reading naslist
> Using deprecated naslist file.  Support for this will go away soon.
> read_config_files:  reading clients
> Using deprecated clients file.  Support for this will go away soon.
> read_config_files:  reading realms
> Using deprecated realms file.  Support for this will go away soon.
> radiusd:  entering modules setup
> Module: Library search path is /usr/local/lib
> Module: Loaded expr
> Module: Instantiated expr (expr)
> Module: Loaded System
>  unix: cache = no
>  unix: passwd = "(null)"
>  unix: shadow = "(null)"
>  unix: group = "(null)"
>  unix: radwtmp = "/var/log/radius/radwtmp"
>  unix: usegroup = no
>  unix: cache_reload = 600
> Module: Instantiated unix (unix)
> Module: Loaded preprocess
>  preprocess: huntgroups = "/usr/local/etc/raddb/huntgroups"
>  preprocess: hints = "/usr/local/etc/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 CHAP
> Module: Instantiated chap (chap)
> Module: Loaded eap
>  eap: default_eap_type = "md5"
>  eap: timer_expire = 60
> rlm_eap: Loaded and initialized the type md5
> Module: Instantiated eap (eap)
> Module: Loaded realm
>  realm: format = "suffix"
>  realm: delimiter = "@"
> Module: Instantiated realm (suffix)
> Module: Loaded files
>  files: usersfile = "/usr/local/etc/raddb/users"
>  files: acctusersfile = "/usr/local/etc/raddb/acct_users"
>  files: preproxy_usersfile = "/usr/local/etc/raddb/preproxy_users"
>  files: compat = "no"
> Module: Instantiated files (files)
> Module: Loaded MS-CHAP
>  mschap: use_mppe = yes
>  mschap: require_encryption = no
>  mschap: require_strong = no
>  mschap: passwd = "(null)"
>  mschap: authtype = "MS-CHAP"
> Module: Instantiated mschap (mschap)
> Module: Loaded Acct-Unique-Session-Id
>  acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address,
> Client-IP-Address, NAS-Port-Id"
> Module: Instantiated acct_unique (acct_unique)
> Module: Loaded detail
>  detail: detailfile =
> "/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d"
>  detail: detailperm = 384
>  detail: dirperm = 493
>  detail: locking = no
> Module: Instantiated detail (detail)
> Module: Loaded radutmp
>  radutmp: filename = "/var/log/radius/radutmp"
>  radutmp: username = "%{User-Name}"
>  radutmp: case_sensitive = yes
>  radutmp: check_with_nas = yes
>  radutmp: perm = 384
>  radutmp: callerid = yes
> Module: Instantiated radutmp (radutmp)
> Listening on IP address *, ports 1645/udp and 1646/udp, with proxy on
> 1647/udp.
> Ready to process requests.
> rad_recv: Access-Request packet from host 172.24.0.14:51838, id=243,
> length=46
>        User-Name = "user"
>        User-Password = "password"
> modcall: entering group authorize for request 0
>  modcall[authorize]: module "preprocess" returns ok for request 0
>  modcall[authorize]: module "chap" returns noop for request 0
>  modcall[authorize]: module "eap" returns noop for request 0
>    rlm_realm: No '@' in User-Name = "d4lane", looking up realm NULL
>    rlm_realm: No such realm "NULL"
>  modcall[authorize]: module "suffix" returns noop for request 0
>    users: Matched d4lane at 7993
>  modcall[authorize]: module "files" returns ok for request 0
>  modcall[authorize]: module "mschap" returns noop for request 0
> modcall: group authorize returns ok for request 0
>  rad_check_password:  Found Auth-Type Local
> auth: type Crypt
> Login OK: [d4lane] (from client slpma1nagioswan port 0)
> Sending Access-Accept of id 243 to 172.24.0.14:51838
>        Service-Type = Framed-User
>        Framed-Protocol = PPP
> Finished request 0
> Going to the next request
> --- Walking the entire request list ---
> Waking up in 6 seconds...
> --- Walking the entire request list ---
> Cleaning up request 0 ID 243 with timestamp 44b70b87
> Nothing to do.  Sleeping until we see a request.
>
>
>
> ------------------------------
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>
> End of Freeradius-Users Digest, Vol 15, Issue 45
> ************************************************
>



More information about the Freeradius-Users mailing list