<div dir="rtl"><div class="gmail_extra"><div dir="ltr"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Yes I did. I also read rlm_mschap sources and dependent libraries. </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">May lead me which section explain this function? <br>
<br></span><br><div class="gmail_quote">2012/4/24 Phil Mayers <span dir="ltr"><<a href="mailto:p.mayers@imperial.ac.uk" target="_blank">p.mayers@imperial.ac.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 24/04/12 13:44, Ali Majdzadeh wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
I checked that rlm_mschap converts the CHAP_CHALLENGE from radius packet<br>
into other format that used in ntlm_auth.<br>
<br>
Radius Packet: MS-CHAP-Challenge = 0x7e95c31b02cd054fd1dcacea7c2f<u></u>b358<br>
<br>
Radius –X output for Ntlm_auth: expand:<br>
--challenge=%{%{mschap:<u></u>Challenge}:-00} -> --challenge=4487f1f9d023e69b<br>
<br>
U told that is normal, based on RFC. I checked the rlm_mschap.c and<br>
rlm_exec.c and also src/main/util.c, It seems that they are copying<br>
</blockquote>
<br></div>
Did you read the RFC?<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
variable one by one from radius packet into ntlm_auth and I did not find<br>
any function to do converting. May give me more information?<br>
</blockquote>
<br></div>
Sigh.<br>
<br>
See here:<br>
<br>
<a href="https://github.com/alandekok/freeradius-server/blob/master/src/modules/rlm_mschap/rlm_mschap.c#L278" target="_blank">https://github.com/alandekok/<u></u>freeradius-server/blob/master/<u></u>src/modules/rlm_mschap/rlm_<u></u>mschap.c#L278</a><br>
<br>
...and here:<br>
<br>
<a href="https://github.com/alandekok/freeradius-server/blob/master/src/modules/rlm_mschap/mschap.c#L70" target="_blank">https://github.com/alandekok/<u></u>freeradius-server/blob/master/<u></u>src/modules/rlm_mschap/mschap.<u></u>c#L70</a><br>
<br>
...which is an implementation of this:<br>
<br>
<a href="http://www.ietf.org/rfc/rfc2759.txt" target="_blank">http://www.ietf.org/rfc/<u></u>rfc2759.txt</a><br>
<br>
If you actually READ the RFC, you will see it contains detailed pseudo-code describing how this work, and even gives sample hex data that you can test your script with.<div class="HOEnZb"><div class="h5"><br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/<u></u>list/users.html</a><br>
</div></div></blockquote></div></div></div></div>