I can't seem to get MS-CHAP to work. We've spent many hours with various
configuration but always seem to have an error. We've tried smbpasswd and
other options without success.

Is there an example MS-CHAP config that I can use for a model? I've been
through all the docs and the mailing list. The NAS is a SMC EliteConnect.

We keep seeing this message and others:

rlm_mschap: No LM/NT password configured. Check authorization.
  modcall[authenticate]: module "mschap" returns invalid



Thank you, Configs and dump below:


------------------------
Applicable parts of the config:

 mschap {
         
        authtype = MS-CHAP
        use_mppe = yes
        require_encryption = yes
        }
authorize {
       mschap
}

authenticate {

        authtype PAP {
                pap
        }
        authtype CHAP {
                chap
        }
        authtype MS-CHAP {
                mschap
        }
}
preacct {
        preprocess
        suffix
        files
}

------------------------
Test user file:

test11    Auth-Type := Local, User-Password := "test"
test12    Auth-Type := MS-CHAP, User-Password := "test"


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

Radius dump:


Ready to process requests.
rad_recv: Access-Request packet from host 192.168.16.3:1176, id=130, length=110
        User-Name = "test12"
        MS-CHAP-Challenge = 0x2c1096fe257fe7d558cd07dee6ea1638
        MS-CHAP2-Response = 
0x00003d1602735c6db434c3145b04dc81a123000000000000000025833ba5078dd3cd1fc0f070e6ae98ee629e73bb4d1742a2
rad_lowerpair:  User-Name now 'test12'
rad_rmspace_pair:  User-Name now 'test12'
modcall: entering group authorize
  modcall[authorize]: module "preprocess" returns ok
    users: Matched DEFAULT at 1
  modcall[authorize]: module "files" returns ok
  modcall[authorize]: module "mschap" returns notfound
modcall: group authorize returns ok
  rad_check_password:  Found Auth-Type MS-CHAP
auth: type "MS-CHAP"
modcall: entering group authtype
rlm_mschap: No LM/NT password configured. Check authorization.
  modcall[authenticate]: module "mschap" returns invalid
modcall: group authtype returns invalid
auth: Failed to validate the user.
Login incorrect: [test12] (from client smc port 0)
Delaying request 0 for 1 seconds
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 1 seconds...
--- Walking the entire request list ---
Waking up in 1 seconds...
--- Walking the entire request list ---
Sending Access-Reject of id 130 to 192.168.16.3:1176
        MS-CHAP-Error = "\000E=691 R=1"
Waking up in 4 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 130 with timestamp 3e43ffcc
Nothing to do.  Sleeping until we see a request.


Radius dump number 2:

--- Walking the entire request list ---
Threads: total/active/spare threads = 5/1/4
Waking up in 5 seconds...
Thread 1 handling request 0, (1 handled so far)
        User-Name = "test12"
        MS-CHAP-Challenge = 0x6227301276f8a2625c5e1b17f5cf8c4b
        MS-CHAP2-Response = 
0x00005e2f83723e193f82d54c210d15bab67400000000000000004a1ee29726edf3a348188e0d4c5c4a59c6542ff9637ec90d
rad_lowerpair:  User-Name now 'test12'
rad_rmspace_pair:  User-Name now 'test12'
modcall: entering group authorize
  modcall[authorize]: module "preprocess" returns ok
rlm_chap: Could not find proper Chap-Password attribute in request
  modcall[authorize]: module "chap" returns noop
    users: Matched test12 at 1075
  modcall[authorize]: module "files" returns ok
  modcall[authorize]: module "mschap" returns ok
modcall: group authorize returns ok
  rad_check_password:  Found Auth-Type MS-CHAP
auth: type "MS-CHAP"
modcall: entering group authtype
rlm_mschap: doing MS-CHAPv2 with NT-Password
rlm_mschap: Authentication failed
rlm_mschap: Nothing in the packet I recognise: Rejecting the user
  modcall[authenticate]: module "mschap" returns reject
modcall: group authtype returns reject
auth: Failed to validate the user.
Login incorrect: [test12] (from client smc port 0)
Delaying request 0 for 1 seconds
Finished request 0
Going to the next request
Thread 1 waiting to be assigned a request
--- Walking the entire request list ---
Threads: total/active/spare threads = 5/0/5
Sending Access-Reject of id 56 to 192.168.16.3:1102
        MS-CHAP-Error = "\000E=691 R=1"
Waking up in 1 seconds...
Error receiving packet: Connection refused
rl_next:  returning NULL
Cleaning up request 0 ID 56 with timestamp 3e3b09ec
Waking up in 1 seconds...
--- Walking the entire request list ---
Nothing to do.  Sleeping until we see a request.
rad_recv: Access-Request packet from host 192.168.16.3:1103, id=57, length=108
Thread 2 assigned request 1
--- Walking the entire request list ---


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

Reply via email to