Auth Mode

On this page, you can check how to use the commands related to the Auth mode.

Command

Description

change serverkey

Changes the serverkey

change db passwd

Changes the password of database

change db account

Changes the account and password of database

change user cli

Changes the CLI account

show siteauthkey

Checks the siteauthkey

remove siteauthkey

Removes the siteauthkey

create appkey

Creates the appkey

show appkey

Checks the appkey

remove appkey

Removes the appkey

 

  1. Move to the Auth mode by entering auth.

cpp>auth
cpp(auth)>help
quit: [cmd] Quit and Terminate
exit: [cmd] Exit from current mode
help: [cmd] Help use case
change: [cmd] Change
change serverkey {key}
change db password [cppoltp|cppolap|edroltp|edrolap|nosql|cached]
change db account [cppoltp|cppolap|edroltp|edrolap|nosql]
change user cli
change appkey
create: [cmd]create[siteauthkey|appkey|certificate]
remove: [cmd]remove[siteauthkey|appkey]
show: [cmd]show[siteauthkey|appkey]
cpp(auth)>

  1. Change the serverkey.

cpp(auth)>change serverkey365
cpp(auth)>

  1. Change the database password.

cpp(auth)>change db passwd cppoltp            //database type to change (eppoltp, nosql, cached)
Do you want to change password?[yes|No]: y
input new password:
retype password:
cpp(auth)>

  1. Change the database account and password.

cpp(auth)>change db account cppoltp            //database type to change (eppoltp, nosql)
current id[cppoltp232]                         //display the current database account name
Do you want to change id?[Yes|No]: y
input new id: cppoltp
Do you want to change password?[Yes|No]: y
input new password:
retype password:

  1. Change the CLI account.

cpp(auth)>change user cli
create cli account
enter user id: newcppcli--> enter a new cli account
Do you want to add new account(newcppcli)?[Yes|No]: y
Changing password for user cppcli.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
You must reconnect with the new admin
It will disconnect after 3 seconds

  1. Check the siteauthkey.

cpp(auth)>show siteauthkey
[master]ahntestkey
cpp(auth)>

  1. Add a siteauthkey.

cpp(auth)>create siteauthkey
input additional siteauthkey: ahntestkey123
cpp(auth)>

  1. Remove the skteauthkey.

cpp(auth)>remove siteauthkey
input remove siteauthkey: ahntestkey123
cpp(auth)>

  1. Create an appkey. The appkey will be sent to you via email.

cpp(auth)>create appkey
input expire date [ex 20191205]: 20201231
input session timeout time[hour]: 3
input connect ip: 172.21.30.40
input query: select ip from tb_node
input description: get agent ip
input app key user mail address: admin@ahnlab.com
retype app key user mail address: admin@ahnlab.com
make a key [Yes|No]:y
cpp(auth)>

  1. Check the appkey sent to your email.

cpp(auth)>show appkey
app id: 1zVAqUqKXddw9ejH
app key: VWAZXp3eoPJrvahZ
from: 2018-04-19
to: 2020-12-31
timeout: 3
connect ip: 1.1.1.0
db type: OLTP
query: select ip from tb_node
description: get agent ip
return type: JSON
cpp(auth)>

  1. Remove the appkey.

cpp(auth)>remove appkey
input remove app id:1zVAqUqKXddw9ejH
do you want to remove app id?[Yes|No]: y
cpp(auth)>