Trimming character of variables within configuration files

Phil Mayers p.mayers at imperial.ac.uk
Wed Apr 17 15:41:43 CEST 2013


On 17/04/13 14:25, P. Manton wrote:
> OK, So I see there is a preprocess module that says you can manipulate
> attributes:
>
> #  The preprocess module takes care of sanitizing some bizarre
> #  attributes in the request, and turning them into attributes
> #  which are more standard.
>
>   so I added the following:
>
>
>     if (User-Password =~ /^(.+)([0-9]{6})$/) {
>       update request {
>         User-Password = "%{1}"
>         Some-PIN-Attr = "%{2}"
>       }
>     }
>
> Although it did not trim the password and returned Access_Reject (I also
> saw from the debug that the 6 digit number had not been trimmed) , so I
> also attempted to add this to the ntlm_auth module with the same result,
> I am really at a loss here..

Sigh.

I gave a clear and specific example, as did someone else, and you insist 
on doing random stuff.

If you're not going to read what I wrote the first time, I'm not going 
to repeat it.


More information about the Freeradius-Users mailing list