Re: usename + password + MAC address

2009-09-13 Thread Hilton Guaraldi
Let me ask something about attr_rewrite in order to give the
possibility to work with my 6 APs, and to do a rewrite of MAC to
EAP-PEAP authentication.
Would it be possible to write in radius.conf and default files the
following, avoiding many entries in the hints file?

Scenario:   AP1  -Send client MAC 00-18-E7-41-AD-C2
AP2,...,AP6-Send client MAC 0018e741adc2

In radius.conf,

attr_rewrite mac-phase1 {
attribute = Calling-Station-Id
new_attribute = no
searchin = packet
ignore_case = no
searchfor = -   # Possible here doing a hyphen search
replacewith =  # and replacing...
append = no
 }

attr_rewrite mac-phase2 {
attribute = Calling-Station-Id
new_attribute = no
searchin = packet
ignore_case = no
searchfor = ???   # Possible here doing a
lowercase letters search
replacewith = ???# and replacing by uppercase
letters, a-A, c-C, d-D, e-E, etc... Apologize me for the ???
append = no
}

and in default:

authorize {
mac-phase1
mac-phase2
...
}

But the problem is, I do not know how to do the replacement.
Do you know how can I do this with an expression in mac-phase2?

And in mac-phase1 the hyphen search is correct?

The benefit would be one Calling-Station-Id with uppercase letters
without hyphens entry in MySQL radcheck table for each user...

The operator in MySQL radcheck table to work with Calling-Station-Id
string is == .
If MAC now is 0018E741ADC2, after running mac-phase2,  the operator
must change?

Best regards,
Guaraldi



2009/9/13 Ivan Kalik t...@kalik.net:
 Ok, it works, but a new problem emerged

 I have 6 AP´s. One of them send the MAC in the following format:
 00-18-E7-41-AD-C2. The others send 0018e741adc2... Here the letters
 are in lowercase and if changed to uppercase the authentication fails
 from 5 AP´s.

 Rewrite Calling-Station-Id in hints file to the format you want (probably
 best without separators). You have examples for regex rewriting mac
 address in other threads on the list.

 Ivan Kalik
 Kalik Informatika ISP



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


usename + password + MAC address

2009-09-07 Thread Rakotomandimby Mihamina

Hi all,

On a Radius version 2.x, we would like to tie an user to a MAC address.

The auth key would then be the username, password and MAC address
(Calling Station ID).

Where is the right place to do that?
- On the freeRadius? (any hint, please?)
- In the PGSQL behind? (using some FUNCTION, I have an idea of that)


Thank you.

--
  Architecte Informatique chez Blueline/Gulfsat:
   Administration Systeme, Recherche  Developpement
   +261 34 29 155 34
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: usename + password + MAC address

2009-09-07 Thread Ivan Kalik
 On a Radius version 2.x, we would like to tie an user to a MAC address.

 The auth key would then be the username, password and MAC address
 (Calling Station ID).

 Where is the right place to do that?
 - On the freeRadius? (any hint, please?)
 - In the PGSQL behind? (using some FUNCTION, I have an idea of that)

If you are using postgre to store user data - then radcheck table (one
entry for password and one for Calling-Station-Id).

Ivan Kalik
Kalik Informatika ISP

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