username at realm append to realm\username

Vikash Gounder coolvixs at gmail.com
Fri Dec 16 00:00:28 CET 2011


Hi Alan,

thanks for a quick response, would this how it is suppose to be done:

 if (User-Name =~ /^(.*)@(.*)/) {
                update request {
                        NT-Domain := "staff"
                }
        } else {
                mschap
        }

Thanks in advance

Cheers
Vikash

On Fri, Dec 16, 2011 at 9:31 AM, Alan Buxey <A.L.M.Buxey at lboro.ac.uk> wrote:

> Hi,
>
> >    +- entering group MS-CHAP {...}
> >    [mschap] Told to do MS-CHAPv2 for [2]user at example.com.au with
> NT-Password
> >    [mschap] � � � �expand: --username=%{mschap:User-Name} ->
> >    --username=[3]user at example.com.au
> >    [mschap] No NT-Domain was found in the User-Name.
> >    [mschap] � � � �expand: --domain=%{mschap:NT-Domain} -> --domain=
>
> change this ntlm_auth command so tat if mschap:NT-Domain DOESNT exist, then
> another is used
>
> eg
>
> --domain=%{mschap:NT-Domain:-example.com.au}
>
> man unlang
>
>
> alan
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20111216/d9fab5df/attachment.html>


More information about the Freeradius-Users mailing list