[Help] radtest mschap problem

Andres arvutihooldus at gmail.com
Fri Apr 26 22:14:19 CEST 2013


host name is radius
ip 10.58.5.58
Full Domain  host name:  radius.mydomain.com  radius

......
resolv.conf

search mydomain.com
nameserver 10.58.5.39
nameserver 10.58.5.45


........
/etc/hosts

127.0.0.1       localhost

# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback

fe00::0         ipv6-localnet

ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts
10.58.5.58      radius.dpd.ee radius

....................

radius:/etc # ping mydomain.com
PING mydomain.com (10.58.5.39) 56(84) bytes of data.
64 bytes from fs.mydomain.com (10.58.5.39): icmp_seq=1 ttl=128 time=0.301 ms
64 bytes from fs.mydomain.com (10.58.5.39): icmp_seq=2 ttl=128 time=0.414 ms


radius:/etc # ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.039 ms

radius:/etc # ping6  localhost
PING localhost(localhost) 56 data bytes
64 bytes from localhost: icmp_seq=1 ttl=64 time=0.080 ms
64 bytes from localhost: icmp_seq=2 ttl=64 time=0.054 ms

.........

radius:/etc # radtest -t mschap testing passme 127.0.0.1 0 testing123456
radclient: Failed to find IP address for host testing: Success

.................
radius:/etc # radtest testing passme 127.0.0.1 0 testing123456
Sending Access-Request of id 177 to 127.0.0.1 port 1812
        User-Name = "testing"
        User-Password = "passme"
        NAS-IP-Address = 10.58.5.58
        NAS-Port = 0
rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=177,
length=20
........................

Yast2 network settings > Hostname/DNS


Network Settings
  ┌Global
Options──Overview──Hostname/DNS──Routing───────────────────────────┐
  │┌Hostname and Domain
Name────────────────────────────────────────────────┐│
  ││Hostname                           Domain Name
 ││
  ││radius▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ mydomain.com
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒││
  ││[x] Change Hostname via DHCPNo interface with dhcp
 ││
  ││[ ] Assign Hostname to Loopback IP
 ││

│└────────────────────────────────────────────────────────────────────────┘│
  │Modify DNS configuration Custom Policy Rule
  │
  │Use Default Policy▒▒▒▒▒↓ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒↓
  │
  │┌Name Servers and Domain Search
List─────────────────────────────────────┐│
  ││Name Server 1                       ┌Domain Search────────────────────┐
││
  ││10.58.5.45▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │mydomain.com
   │ ││
  ││Name Server 2                       │                                 │
││
  ││10.58.5.39▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │                                 │
││
  ││Name Server 3                       │                                 │
││
  ││▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ └─────────────────────────────────┘
││
  │└────────────────────────────────────────────────────────

I cannot figure out what is the cause of it, that radtest -t mschap dont
work.
Is it related to DNS or IPv6?  Did I something wrong...

I'm using( as Windows 2008 domain member):
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2

FreeRADIUS Version 2.1.1, for host x86_64-suse-linux-gnu, built on Jan 22
2013 at 23:55:29



I'd be very grateful if someone would care to assist me with this problem

Andres















2013/4/26 Chitrang Srivastava <chitrang.srivastava at gmail.com>

> whats the hostname of ur system ?
>
>
> On Fri, Apr 26, 2013 at 6:30 PM, Andres <arvutihooldus at gmail.com> wrote:
>
>> this way looks my hosts file:
>>
>> # IP-Address  Full-Qualified-Hostname  Short-Hostname
>> #
>>
>> 127.0.0.1       localhost
>>
>> # special IPv6 addresses
>> ::1             localhost ipv6-localhost ipv6-loopback
>>
>> fe00::0         ipv6-localnet
>>
>> ff00::0         ipv6-mcastprefix
>> ff02::1         ipv6-allnodes
>> ff02::2         ipv6-allrouters
>> ff02::3         ipv6-allhosts
>> 10.58.5.58      radius.mydomain.com radius
>>
>> Andres
>>
>>
>>
>> 2013/4/26 Chitrang Srivastava <chitrang.srivastava at gmail.com>
>>
>>> Most likely your host file didnt have entry of your domain name,
>>> dump your hostname and /etc/hosts file here and then we can comment
>>> better
>>>
>>> On Thu, Apr 25, 2013 at 10:52 PM, Andres <arvutihooldus at gmail.com>wrote:
>>>
>>>> Hello All,
>>>>
>>>> I'm trying to test mschap with radtest but it gives me strange error
>>>> message.
>>>> I've tried to solve it several days, but had no success.
>>>>
>>>> I'm using syntax like that:
>>>>
>>>> $ radtest -t mschap user password 127.0.0.1 0 secret
>>>>
>>>> radclient : Failed to find IP address for host user: Success
>>>>
>>>>
>>>> radclient: $Id$ built on Jan 22 2013 at 23:55:37
>>>> FreeRADIUS Version 2.1.1, for host x86_64-suse-linux-gnu, built on Jan
>>>> 22 2013
>>>>
>>>> host file looks fine
>>>>
>>>> I would appreciate it if someone can help me
>>>> ,
>>>>
>>>> Andres
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -
>>>> List info/subscribe/unsubscribe? See
>>>> http://www.freeradius.org/list/users.html
>>>>
>>>
>>>
>>> -
>>> List info/subscribe/unsubscribe? See
>>> http://www.freeradius.org/list/users.html
>>>
>>
>>
>> -
>> List info/subscribe/unsubscribe? See
>> http://www.freeradius.org/list/users.html
>>
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20130426/23ab0a1d/attachment-0001.html>


More information about the Freeradius-Users mailing list