User-Password to Cleartext-Password Conversion.

Mustafa Mujahid/SYS mustafa.mujahid at nayatel.com
Wed Jan 18 17:15:10 CET 2017


Our DB admin was not in the favor of doing this, but okay if you say so, 
I will discuss this with him.

*Mustafa Mujahid | Systems*
/Operations Engineer/

On 01/18/2017 09:03 PM, Alan DeKok wrote:
> On Jan 18, 2017, at 10:38 AM, Mustafa Mujahid/SYS <mustafa.mujahid at nayatel.com> wrote:
>> In which file exactly do I need to add this?
>    raddb/sites-enabled/default  in the "authorize" section.
>
>> Qoute >
>>
>> If it really is impossible to do this, the following unlang inserted above the call to the pap module may be used to copy User-Password to the correct attribute:
>>
>> if (!control:Cleartext-Password && control:User-Password) {
>>   update control {
>>     Cleartext-Password := "%{control:User-Password}"
>>   }
>> }
>>
>> However, this should only be seen as a temporary, not permanent, fix. It is better to fix your databases to use the correct configuration.
>>
>> <Unqoute
>>
>> I changed the attribute temporarily in my DB and it worked, I would prefer using the same attribute as no specific detrimental effects about the above have been mentioned.
>    You should update your database to use Cleartext-Password.  It's better.
>
>    Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list