Ivan Kalik a écrit :
I tried to put this in the users file:
Unlang goes into virtual server configuration, not users file.
if ( "%{User-Name}" =~ "00030BCA[0-9A-F]+" ) {
update control { Cleartext-Password == "%{User-Name}"
}
}
Ivan Kalik Kalik Informatika ISP
Thank you very much for the precious help and prompt reply!!! It's working very well! Just in case someone needs the info, I have put it in site-available/default file, at the beginning of the authorise section after preprocess. Here is the exact synthax: if ( "%{User-Name}" =~ /00030BCA[0-9A-F]+/i ) { update control { Cleartext-Password = "%{User-Name}" } } else { noop } Furthermore, I would like to suggest or edit parts of this page http://freeradius.org/radiusd/man/unlang.html , so that we have a detailed list of where and how we can use unlang. For example: "Unlang can be used in the following configuration files: Virtual-servers --> i.e: default ---> authorise, post-auth XXXXX ----> file YYY ---> section m,n" What do you think? Best regards, Matt