Hello All, I'm using FreeRadius and MySQL 5.7 with Crypt-Password and to generate the Crypt Password I'm using MySQL ENCRYPT function with salt. Now I'm trying to go to MySQL 8 and ENCRYPT function is deprecated! What I need to do to generate a salt password for freeradius? Any hint is apreciated. Thanks Aurelio
On Jan 26, 2024, at 2:42 PM, Aurélio de Souza Ribeiro Neto <netolistas@mpc.com.br> wrote:
I'm using FreeRadius and MySQL 5.7 with Crypt-Password and to generate the Crypt Password I'm using MySQL ENCRYPT function with salt.
Now I'm trying to go to MySQL 8 and ENCRYPT function is deprecated!
What I need to do to generate a salt password for freeradius?
There are a number of tools which create crypt'd passwords. See the "crypt" command in most Linux distributions. https://manpages.ubuntu.com/manpages/focal/en/man1/crypt.1.html Alan DeKok.
Alan, Ok, but how FreeRadius knows what kind of crypt I'm using? Aurélio Em 26/01/2024 18:31, Alan DeKok escreveu:
On Jan 26, 2024, at 2:42 PM, Aurélio de Souza Ribeiro Neto <netolistas@mpc.com.br> wrote:
I'm using FreeRadius and MySQL 5.7 with Crypt-Password and to generate the Crypt Password I'm using MySQL ENCRYPT function with salt.
Now I'm trying to go to MySQL 8 and ENCRYPT function is deprecated!
What I need to do to generate a salt password for freeradius?
There are a number of tools which create crypt'd passwords. See the "crypt" command in most Linux distributions.
https://manpages.ubuntu.com/manpages/focal/en/man1/crypt.1.html
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Jan 27, 2024, at 10:20 AM, Aurélio de Souza Ribeiro Neto <netolistas@mpc.com.br> wrote:
Ok, but how FreeRadius knows what kind of crypt I'm using?
All that information is encoded in the crypt password. FreeRADIUS uses the same crypt() libraries and APIs which the "crypt" command uses to create the password. So FreeRADIUS just hands the password back to the crypt libraries, and the libraries figure it out. Alan DeKok.
Alan, Last question: it's possible to user AES_ENCRYPT passwords ? In this case, what attribute I need to put in radckeck table? Thanks Aurélio Em 27/01/2024 12:49, Alan DeKok escreveu:
On Jan 27, 2024, at 10:20 AM, Aurélio de Souza Ribeiro Neto <netolistas@mpc.com.br> wrote:
Ok, but how FreeRadius knows what kind of crypt I'm using?
All that information is encoded in the crypt password. FreeRADIUS uses the same crypt() libraries and APIs which the "crypt" command uses to create the password.
So FreeRADIUS just hands the password back to the crypt libraries, and the libraries figure it out.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Jan 29, 2024, at 4:35 PM, Aurélio de Souza Ribeiro Neto <netolistas@mpc.com.br> wrote:
Last question: it's possible to user AES_ENCRYPT passwords ?
See my comment below:
FreeRADIUS just hands the password back to the crypt libraries, and the libraries figure it out.
In this case, what attribute I need to put in radckeck table?
Crypt-Password, as with all other crypt'd password. Alan DeKok.
participants (2)
-
Alan DeKok -
Aurélio de Souza Ribeiro Neto