... | ... | @@ -35,34 +35,39 @@ ubuntu@test-amf:~/oai-cn5g-amf/build/scripts$ ./build_amf -c -V -b Debug -j |
|
|
```
|
|
|
|
|
|
## MySQL Installation
|
|
|
At this stage, AMF does not support authentication/authorization procedures via UDM/AUSF. These procedures are implemented locally in AMF. Also, we relied on a MySQL database to store the user information. This DB can be deployed in a separated machine or in the same machine with AMF.
|
|
|
At this stage, AMF does not support authentication/authorization procedures via UDM/AUSF. These procedures are implemented locally in AMF. Also, we relied on a MySQL database (DB) to store the user information. This DB can be deployed in a separated machine or in the same machine with AMF.
|
|
|
|
|
|
Install MySQL server and try to login.
|
|
|
Install MySQL server with the following command and try to login.
|
|
|
```bash
|
|
|
$ sudo apt install mysql-server
|
|
|
$ mysql -u root -p
|
|
|
```
|
|
|
You may need to change password for root as following:
|
|
|
The default username and password used for MySQL are `root` and `linux`, respectively.
|
|
|
Note that you may need to change the password for root as following:
|
|
|
|
|
|
mysql -u root -p
|
|
|
|
|
|
then from mysql prompt:
|
|
|
|
|
|
mysql> FLUSH PRIVILEGES;
|
|
|
|
|
|
then set new password to "linux"
|
|
|
|
|
|
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'linux';
|
|
|
|
|
|
exit
|
|
|
```bash
|
|
|
$ mysql -u root -p
|
|
|
# from mysql prompt execute the following command:
|
|
|
$ mysql> FLUSH PRIVILEGES;
|
|
|
# then, set new password to "linux"
|
|
|
$ mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'linux';
|
|
|
$ mysql> exit
|
|
|
```
|
|
|
|
|
|
and then try to login a gain with password "linux"
|
|
|
Default username and password used for HSS are `root` and `linux`,
|
|
|
respectively, and can be changed in the HSS's `hss.conf` file later.
|
|
|
For Ubuntu 18.04, a login as root was not possible. [Follow these steps to make
|
|
|
it work](https://vitux.com/how-to-install-and-configure-mysql-in-ubuntu-18-04-lts/)
|
|
|
or create another user.
|
|
|
After that, we can login to MySQL with password "linux" and create/import a database for your user information.
|
|
|
|
|
|
```bash
|
|
|
$ mysql -u root -p
|
|
|
# You can then create a DB
|
|
|
$ mysql> create database oai_db;
|
|
|
$ mysql> exit
|
|
|
# then import the DB
|
|
|
$ mysql -u root -p oai_db < oai_db.sql
|
|
|
# Import your UE configuration:
|
|
|
$ mysql> use oai_db;
|
|
|
$ mysql> INSERT INTO users VALUES
|
|
|
('208950000000031','380561234567','55000000000001',NULL,'PURGED',50,40000000,100000000,47,0000000000,1,0x0C0A34601D4F07677303652C0462535B,0,0,0x40,'ebd07771ace8677a',0x63bfa50ee6523365ff14c1f45f88737d);
|
|
|
```
|
|
|
|
|
|
## AMF Configuration
|
|
|
|
... | ... | |