<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>It finally works.  Looks the format changed.  </DIV>
<DIV> </DIV>
<DIV>--domain=%{mschap:NT-Domain:-xjtu}      ==> works in freeradius-1.1.x, 2.1.x not works</DIV>
<DIV>--domain=%{%{mschap:NT-Domain}:-xjtu}   ==> works in freeradius-2.1.x, 1.1.x not works</DIV>
<DIV><BR><BR>--- <B>10年7月8日,周四, John <I><elmer_radius@yahoo.com.cn></I></B> 写道:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>发件人: John <elmer_radius@yahoo.com.cn><BR>主题: Re: ntlm_auth fails for none domain<BR>收件人: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org><BR>日期: 2010年7月8日,周四,下午2:10<BR><BR>
<DIV id=yiv1510714640>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV> </DIV>
<DIV>Sorry. I did not set the 'xjtu' in the first time. But I set 'xjtu' after that. Pls see the second mail I wrote.</DIV>
<DIV> </DIV>
<DIV>I put ntlm_auth line to file 'mschap'. The attached file is my 'mschap' and the related debug info.</DIV>
<DIV><BR><BR>--- <B>10年7月5日,周一, Alan Buxey <I><A.L.M.Buxey@lboro.ac.uk></I></B> 写道:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>发件人: Alan Buxey <A.L.M.Buxey@lboro.ac.uk><BR>主题: Re: ntlm_auth fails for none domain<BR>收件人: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org><BR>日期: 2010年7月5日,周一,下午4:53<BR><BR>
<DIV class=plainMail>Hi,<BR><BR>no...you havent added it. look, heres the debug you supplied<BR><BR>> It is the related part in configuration file:<BR>> ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --domain=%{mschap:NT-Domain:-xjtu} --username=%{mschap:User-Name} --challenge=%{mschap:Challenge:-00} --nt-response=%{mschap:NT-Response:-00}"<BR>> <BR>> <BR>> It is debug info:<BR>> [mschap] Told to do MS-CHAPv2 for hhe with NT-Password<BR>> [mschap] No NT-Domain was found in the User-Name.<BR>> [mschap]  expand: --domain=%{mschap:NT-Domain} -> --domain=<BR>                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^<BR><BR>where is xjtu mentioned there?  is isnt.<BR><BR>WHERE did you put the ntlm_auth line?  <BR><BR>alan<BR>-<BR>List info/subscribe/unsubscribe? See <A href="http://www.freeradius.org/list/users.html" target=_blank
 rel=nofollow>http://www.freeradius.org/list/users.html</A><BR></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR> </DIV></BLOCKQUOTE></td></tr></table><br>