Thanks. I will try this.<br><br>The subject line was because I was trying to match it to a realm and thought by doing it that way I could get it to strip off what I needed.<br><br>On Saturday, March 16, 2013, Phil Mayers <<a href="mailto:p.mayers@imperial.ac.uk">p.mayers@imperial.ac.uk</a>> wrote:<br>
> On 03/15/2013 10:47 PM, Matthew Ceroni wrote:<br>>><br>>> Well I found something that appears to work. I used the hints file. And<br>>> it correctly stripped off the host/ and domain.local.<br>>><br>
>> However now I get the error<br>>><br>>> [eap] Identity does not match User-Name, setting from EAP Identity<br>>> [eap] Failed in handler<br>><br>> Modifying the "User-Name" attribute is a bad idea. It will, as you have seen, break EAP.<br>
><br>> Use another attribute - maybe define your own local one (see raddb/dictionary and pay attention to the comments about numbering).<br>><br>> You were previously using Stripped-User-Name - just keep using that, and move the "unlang" you wrote to the top of the "authorize" section i.e.:<br>
><br>> authorize {<br>> if (User-Name =~ /^h.../) {<br>> ...<br>> }<br>> ...<br>> }<br>><br>> One other alternative is to leave the username alone, and use the xlat provided by the mschap module; specifically this:<br>
><br>> %{mschap:User-Name}<br>><br>> ...will expand this:<br>><br>> host/<a href="http://name.domain.com">name.domain.com</a><br>><br>> ...to this:<br>><br>> name$<br>><br>> Note the trailing dollar sign, which is windows-speak for "machine account". This is required if, for example, you use Samba/ntlm_auth, which requires "--username=host$" as the CLI argument.<br>
><br>> I'm not sure what any of this has to do with the subject line, btw...<br>> -<br>> List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a><br>
>