Skip to content

Instantly share code, notes, and snippets.

@kerus1024
Last active August 6, 2022 08:55
Show Gist options
  • Save kerus1024/b9feec7b30a385ffcfbe54bb92c28902 to your computer and use it in GitHub Desktop.
Save kerus1024/b9feec7b30a385ffcfbe54bb92c28902 to your computer and use it in GitHub Desktop.
php freeradius add new user
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