<html><body>
<p><font size="2" face="sans-serif">Nice, thanks</font><br>
<br>
<font size="2" face="sans-serif">But in this case, how to tell Freeradius to use this variable when it's a host connection ?</font><br>
<font size="2" face="sans-serif">Because, I had already split User-Name variable into Stripped-User-name and use that into post-auth section to log correct syntax user.</font><br>
<font size="2" face="sans-serif">So if I tell Freeradius to used variable </font><tt><font size="2">%{mschap:User-Name}</font></tt><font size="2" face="sans-serif">, I think it will be logging original request UserName, no ?</font><br>
<br>
<font size="2" face="sans-serif">How to define a second post auth request when it's a host ?</font><br>
<br>
<font size="2" face="sans-serif">For example, I want the Stripped-UserName into sql postauth table when it's a user and the variable </font><tt><font size="2">%{mschap:User-Name}</font></tt><font size="2" face="sans-serif"> when i'ts a host connection.</font><br>
<br>
<font size="2" face="sans-serif">Thanks.</font><br>
<br>
<br>
<font size="2" face="sans-serif">Nicolas CLO</font><br>
<br>
<br>
<br>
<tt><font size="2">On 08/16/2013 08:24 AM, nicolas.clo@ricoh-industrie.fr wrote:<br>
> Hi list,<br>
><br>
> I'm searching the best way to configure a policy to split the domain<br>
> and the prefix ' /host' when it is a computer connection.<br>
<br>
You probably don't want to do this.<br>
<br>
Instead, you probably want to use the expansion:<br>
<br>
%{mschap:User-Name}<br>
<br>
...which correctly transforms:<br>
<br>
host/name.domain.com<br>
<br>
...to:<br>
<br>
name$<br>
<br>
...which is the correct form of the samaccountname for an AD computer <br>
account, which is I assume what you're dealing with.<br>
-<br>
List info/subscribe/unsubscribe? See </font></tt><tt><font size="2"><a href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a></font></tt><tt><font size="2"><br>
</font></tt><br>
</body></html>