<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.5pt;
font-family:Consolas;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:Consolas;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoPlainText>Jevos, Peter wrote:<o:p></o:p></p>
<p class=MsoPlainText>> How can I skip to the second DEFAULT if the first
DEFAULT doesn’t pass ?<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText> Use the "Fall-Through" attribute. See
comments in the default "users"<o:p></o:p></p>
<p class=MsoPlainText>file.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>> So if request comes from the 10.1.1.2 and user
doesn’t pass through<o:p></o:p></p>
<p class=MsoPlainText>> authentication, it should be forwarded to another
DEFAULT ( with the<o:p></o:p></p>
<p class=MsoPlainText>> vpn_auth_name authentication).<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText> That is *completely* different from the previous
question, and much<o:p></o:p></p>
<p class=MsoPlainText>more difficult. The "users" file is only
processed once, at the<o:p></o:p></p>
<p class=MsoPlainText>"authorize" stage. You're asking for something
else to happen if<o:p></o:p></p>
<p class=MsoPlainText>authentication fails. i.e. when the "users" is
no longer being processed.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText> A much better choice is to set the authentication type
only once.<o:p></o:p></p>
<p class=MsoPlainText>i.e. "if the user is in group X, do ntlm_auth.
Otherwise, vpn_auth"<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText> Alan DeKok.<o:p></o:p></p>
<p class=MsoPlainText>-<o:p></o:p></p>
<p class=MsoPlainText>List info/subscribe/unsubscribe? See <a
href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a><o:p></o:p></p>
<p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='color:black'>Thanks for your answer Alan<o:p></o:p></span></p>
<p class=MsoPlainText><span style='color:black'>Fall-through attribute doesn’t work
in this case, cause it is “falling” all the time ( even though it matches the
condition )<o:p></o:p></span></p>
<p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='color:black'>However, let’s think about this
classic case: You have one router, with more profiles to connect ( different
pools, dns, and so on )<o:p></o:p></span></p>
<p class=MsoPlainText><span style='color:black'>Every profile should have its authentication
against different AD group<o:p></o:p></span></p>
<p class=MsoPlainText><span style='color:black'>So it is not possible to solve
it through USERS file ?<o:p></o:p></span></p>
<p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='color:black'>Thanks<o:p></o:p></span></p>
<p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='color:black'>pet<o:p></o:p></span></p>
<p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p>
</div>
</body>
</html>