Last active
August 6, 2022 08:55
-
-
Save kerus1024/b9feec7b30a385ffcfbe54bb92c28902 to your computer and use it in GitHub Desktop.
php freeradius add new user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USERNAME="samsung" | |
PASSWORD="pass" | |
SQL="use radius; INSERT INTO radcheck (username, attribute, op, value) VALUES ('$USERNAME','User-Password',':=','$PASSWORD');" | |
mysql -u root -p radius <<EOF | |
$SQL | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment