Re: Cleartext-Password := %{User-Name} in the users file. Possible?

2011-03-03 Thread Phil Mayers

On 03/03/11 16:10, Difan Zhao wrote:

Hi experts,

I want to try another way to authenticate devices by their MAC
addresses. I don’t really care about the security and just try to make
the configuration easy. Here is my configuration:

 hints =

DEFAULT User-Name =~ 001422.*

Hint = STB

= users =

DEFAULT Hint == STB, Cleartext-Password := %{User-Name}


Why bother with a password at all?

DEFAULT Hint == STB, Auth-Type := Accept
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


RE: Cleartext-Password := %{User-Name} in the users file. Possible?

2011-03-03 Thread Difan Zhao
Thanks Phil! It works! It definitely fits what I need! However just be curious, 
why my setting won't work?

Thanks!

-Original Message-
From: freeradius-users-bounces+difan.zhao=guest-tek@lists.freeradius.org 
[mailto:freeradius-users-bounces+difan.zhao=guest-tek@lists.freeradius.org] 
On Behalf Of Phil Mayers
Sent: March-03-11 9:16 AM
To: FreeRadius users mailing list
Subject: Re: Cleartext-Password := %{User-Name} in the users file. Possible?

On 03/03/11 16:10, Difan Zhao wrote:
 Hi experts,

 I want to try another way to authenticate devices by their MAC
 addresses. I don't really care about the security and just try to make
 the configuration easy. Here is my configuration:

  hints =

 DEFAULT User-Name =~ 001422.*

 Hint = STB

 = users =

 DEFAULT Hint == STB, Cleartext-Password := %{User-Name}

Why bother with a password at all?

DEFAULT Hint == STB, Auth-Type := Accept
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

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


Re: Cleartext-Password := %{User-Name} in the users file. Possible?

2011-03-03 Thread Phil Mayers

On 03/03/11 18:11, Difan Zhao wrote:

Thanks Phil! It works! It definitely fits what I need! However just be curious, 
why my setting won't work?


I'm not sure. It should work; it seems like the expansion:

  Cleartext-Password := %{User-Name}

...wasn't being acted on. Are you sure you didn't have a typo somewhere?
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Cleartext-Password := %{User-Name} in the users file. Possible?

2011-03-03 Thread Alan DeKok
Phil Mayers wrote:
 I'm not sure. It should work; it seems like the expansion:
 
   Cleartext-Password := %{User-Name}
 
 ...wasn't being acted on. Are you sure you didn't have a typo somewhere?

  The control items aren't expanded in the hints or users file.

  Use unlang.

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