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 |
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)>
cpp(auth)>change serverkey365
cpp(auth)>
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)>
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:
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
cpp(auth)>show siteauthkey
[master]ahntestkey
cpp(auth)>
cpp(auth)>create siteauthkey
input additional siteauthkey: ahntestkey123
cpp(auth)>
cpp(auth)>remove siteauthkey
input remove siteauthkey: ahntestkey123
cpp(auth)>
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)>
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)>
cpp(auth)>remove appkey
input remove app id:1zVAqUqKXddw9ejH
do you want to remove app id?[Yes|No]: y
cpp(auth)>