Dear sir

I try search about unlang and write it to accept user even though wrong password and chap reject.
i need to set wrong password user to ip group and then redirect them to html explain about the problem.



i try this unlang in chap


authenticate {
??????? #?
??????? #? PAP authentication, when a back-end database listed
??????? #? in the 'authorize' section supplies a password.? The
??????? #? password can be clear-text, or encrypted.
??????? Auth-Type PAP {
??????????????? pap
??????? }

??????? #
??????? #? Most people want CHAP authentication
??????? #? A back-end database listed in the 'authorize' section
??????? #? MUST supply a CLEAR TEXT password.? Encrypted passwords
??????? #? won't work.
??????? Auth-Type CHAP {
??????????????? chap


if (reject) {

?????????????????????? update reply {

?????????????????????????????? Framed-IP-Address = "13.0.0.0+"
?????????????????????????????? Framed-IP-Netmask = "255.255.255.0"

??????????????????????? }

??????????????????????? update control {
????????????????????????????? Auth-Type := "Accept"
????????????
??????????????????????? }
??????????????? }

}


and it 's not work...

Could any one point me how to solve this?
Or what i should change on??? ? if (reject) {??
Or What section should it put this unlang.

Or give me some unlang scripts.


Thank you in advance.



--
http://www.EasyHorpak.com - ???????????????,???????????,???????,?????,??????
http://www.EasyZoneCorp.net - ????????????? internet ????????? Hotpsot ??? PPPoE ,Anti NetCut, Mac spoof
http://www.thai-school.net - ????????????????,????????? ?????????
EasyZone SuperLink - ??????????????????????????
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to