Command «credentials»

Command «credentials» is used to make manipulations with credential files. This is:

  • Printing credentials from credential file. Password is hidden;

  • Adding, editing and deleting credentials;

  • Changing credential type;

  • Converting from eagle encrypted file to aes encrypted.

Different actions have different parameters.

General Syntax

Here is basic syntax of credential command:

cmdmgr.exe credentials --type=<eagle|aes> --action=<list|add|delete|edit|convert|change_credtype> [optional parameters]

Parameter «type» is required for selecting encoding type. Therefore, it cannot be empty.

If action is changing content of file, it automatically converts from old format file (with another encryption format and 3-parameter credential format) to new file format (more flexible encryption format and 4-parameter credential format).

Below will be described each action in details.

1. action=list

This is action, which prints credentials from specified file.

Syntax

Here is command syntax with this action:

cmdmgr.exe credentials --type=aes --action=list [--file=<path_to_file>|--section=<some_section>]

Parameters

Command has two optional parameters:

  • file – path to credential file. If this parameter not specified, then default file location will be from «db_connection.ini» primary section;

  • section – server custom settings section, by default primary.

Examples

List Example 1

cmdmgr.exe credentials --type=aes --action=list
List example 1

List Example 2

 

List Example 3

List example 3

2. action=add

This action allows adding new credential to specified file, or file from section.

Syntax

Here is command syntax with this action:

Parameters

Action has such parameters:

  • name – database name;

  • user – user name or login for database connection;

  • pass – user password for database connection. It will be encrypted using encryption type from parameter «type»;

  • credtype – Credential database type. It can be mssql, oracle, service or unknown. By default, it is unknown. This is optional parameter;

  • file – path to credential file. If this parameter not specified, then default file location will be from «db_connection.ini» primary section. This is optional parameter;

  • section – server custom settings section, by default primary. This is optional parameter.

Examples

Add Example 1

Add Example 2

Add Example 3

Add Example 4

If credential file does not exist, action «add» will create new file based on file or section parameter, or will use default file location from database configuration file.

3. action=delete

This is action which delete credential from specified file or file from section.

Syntax

Here is command syntax with this action:

Parameters

Action has such parameters:

  • name – database name;

  • user – user name or login for database connection;

  • credtype – Credential database type. It can be mssql, oracle, service or unknown. By default, it is unknown. This is optional parameter;

  • file – path to credential file. If this parameter not specified, then default file location will be from «db_connection.ini» primary section. This is optional parameter;

  • section – server custom settings section, by default primary. This is optional parameter.

Examples

Delete Example 1

Delete Example 2

Delete Example 3

Delete Example 4

4. action=edit

This is action, which allows editing existing credential password in specified file, or file from section.

Syntax

Here is command syntax with this action:

Parameters

Parameter list:

  • name – database name;

  • user – user name or login for database connection;

  • pass – new user password. It will be encrypted using encryption type from parameter «type»;

  • credtype – Credential database type. It can be mssql, oracle, service or unknown. By default, it is unknown. This is optional parameter;

  • file – path to credential file. If this parameter not specified, then default file location will be from «db_connection.ini» primary section. This is optional parameter;

  • section – server custom settings section, by default primary. This is optional parameter.

Examples

5. action=convert

This is action, which allows converting credential files from eagle encoding to new format aes encoding. This means that credentials from eagle encoding will have 4th parameter (database type) set to unknown, because, old format does not support this parameter.

Syntax

Here is command syntax with this action:

Parameters

Action has such parameters:

  • from – path to credential file in eagle format;

  • to – path with file name for converted file.

Example

6. action=change_credtype

This is action, which allow to change credential database type in specified file, or file from section.

Syntax

Here is command syntax with this action:

Parameters

Action has such parameters:

  • from – database type that currently credential has.

  • to – new database type.

Example