Did my last mail made it?
--------- Last Mail: ---------
Phil, you got it working!

All of what you wrote was right:
- added Cleartext-Password2 to /usr/share/freeradius/dictionary.freeradius.internal
- created user file like this:
user Cleartext-Password := "1", Cleartext-Password2 += "2"
- updated sites-enabled/default to look like this (authorize section)


[..]
        #
        #  Read the 'users' file
        files {
        }

        if (("%{User-Password}" != "%{control:Cleartext-Password}") && ("%{User-Password}" != "%{control:Cleartext-Password2}")) {
                update reply {
                        Reply-Message = "I suck at FreeRadiusing!"
                }
        reject
        }
        else {

                update control {
                        Auth-Type := Accept
                }
        }
[..]

If I can buy you a beer or something (thinking of https://secure.wikimedia.org/wikipedia/en/wiki/Beerware or https://secure.wikimedia.org/wikipedia/en/wiki/Postcardware
) just email me :)

Best Regards


2011/7/7 Phil Mayers <p.mayers@imperial.ac.uk>
On 07/07/11 13:18, Equin Nix wrote:
Hi Phil,

thanks a lot for the fast answer! Unfortunatelly your radius-skills seem
to be far far from mine, but I think I get the point.

I tried to add the following to /sites-enabled/default/ (int authorize
section) (Its not a full copy of your text, I wanted to start step by step):

[...]
#
# Read the 'users' file
files {
# compare them

No, that's wrong. As per my original email, it should be:

authorize {
 files
 if (...) {
}

You've got:

authorize {
 files {
   ...
 }
}

...which is wrong.

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html