logging and customs attributes
Pascal Legrand
pascal.legrand at univ-orleans.fr
Fri Oct 5 16:05:53 CEST 2018
This line works great :
msg_goodpass = " - Machine : %{&control:Nom-Machine}"
Thanks a lot for your help
Le 05/10/2018 à 15:36, Ali Arslan via Freeradius-Users a écrit :
> Hi,
>
>> I see that "msg_badpass = string" can be a variable. Then, does "Nom-Machine" is the variable name ?
>
> Try as
>
> msg_goodpass = "%{&control:Nom-Machine}"
> msg_badpass = "%{&control:Nom-Machine}"
>
>
>
>
>
>
> On Friday, October 5, 2018 04:30:06 PM +03, Pascal Legrand <pascal.legrand at univ-orleans.fr> wrote:
>
>
>
>
>
> Then if i add this line in dictionary :
> ATTRIBUTE Nom-Machine 3003 string
>
> And if my config file is like that :
> 0C41E978313C Cleartext-Password := "0C41E978313C", Nom-Machine :=
> "SWITCH-CM1"
> 0C41E97831A3 Cleartext-Password := "0C41E97831A3", Nom-Machine :=
> "SWITCH-CM2"
> 007E95CC6070 Cleartext-Password := "007E95CC6070", Nom-Machine := "AP-CM1"
> 007E95CC5EF0 Cleartext-Password := "007E95CC5EF0", Nom-Machine := "AP-CM2"
> ..........
>
> I see that "msg_badpass = string" can be a variable. Then, does
> "Nom-Machine" is the variable name ?
>
>
> Thanks
>
>> The custom attribute isn't magically logged. If every attribute was logged all of the time, then the logs would be full of garbage.
>>
>> You have to *tell* the server to log the custom attribute. How do you do this? Via the "msg_goodpass" and "msg_badpass" configuration items. The ones you didn't include above.
>>
>> The default configuration has LOTS of comments that document what everything is, what it does, and how to use it. Please read it.
>>
>> Alan DeKok.
>>
>>
>> -
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
--
Pascal Legrand - /Service Informatique/
*IUT de Chartres* - 1, place Roger Joly - 28000 Chartres
Téléphone : 02 37 91 83 36
Mail : service-info.iut.chartres at univ-orleans.fr
GLPI : aide.infoiut28 at univ-orleans.fr
PGP : 0x29d77e71
Facebook : Rejoignez-nous sur Facebook
<http://www.facebook.com/IUTdeCHARTRES>
QR Code
Site web : <http://www.univ-orleans.fr/iut-chartres>
More information about the Freeradius-Users
mailing list