Skip to content

Commit

Permalink
Adjust DSN config UI for AWS Authentication (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
justing-bq authored and yanw-bq committed May 2, 2023
1 parent e804a1d commit fe7ac60
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions installer/myodbc-installer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -570,12 +570,12 @@ int list_datasource_details(DataSource *ds)
if (ds->enable_dns_srv) printf("\tENABLE_DNS_SRV\n");
if (ds->multi_host) printf("\tMULTI_HOST\n");
/* AWS Authentication */
if (ds->auth_mode) printf("\tAUTH_MODE");
if (ds->auth_region) printf("\tAUTH_REGION");
if (ds->auth_host) printf("\tAUTH_HOST");
if (ds->auth_port) printf("\tAUTH_PORT");
if (ds->auth_expiration) printf("\tAUTH_EXPIRATION");
if (ds->auth_secret_id) printf("\tAUTH_SECRET_ID");
if (ds->auth_mode) printf("\tAUTHENTICATION_MODE");
if (ds->auth_region) printf("\tAWS_REGION");
if (ds->auth_host) printf("\tIAM_HOST");
if (ds->auth_port) printf("\tIAM_PORT");
if (ds->auth_expiration) printf("\tIAM_EXPIRATION_TIME");
if (ds->auth_secret_id) printf("\tSECRET_ID");
/* Failover */
if (ds->enable_cluster_failover) printf("\tENABLE_CLUSTER_FAILOVER\n");
if (ds->allow_reader_connections) printf("\tALLOW_READER_CONNECTIONS\n");
Expand Down
24 changes: 12 additions & 12 deletions setupgui/windows/odbcdialogparams.rc
Original file line number Diff line number Diff line change
Expand Up @@ -192,19 +192,19 @@ IDD_TAB3 DIALOGEX 0, 0, 209, 181
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
RTEXT "Authentication Mode:", IDC_STATIC, 0, 10, 80, 10
COMBOBOX IDC_EDIT_auth_mode, 85, 10, 85, 10,
RTEXT "Authentication Mode:", IDC_STATIC, -8, 10, 80, 10
COMBOBOX IDC_EDIT_auth_mode, 78, 10, 289, 10,
CBS_DROPDOWN | CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP
RTEXT "Auth Region:", IDC_STATIC, 0, 25, 80, 10
EDITTEXT IDC_EDIT_auth_region, 85, 25, 85, 10, ES_AUTOHSCROLL
RTEXT "IAM Host:", IDC_STATIC, 0, 40, 80, 10
EDITTEXT IDC_EDIT_auth_host, 85, 40, 85, 10, ES_AUTOHSCROLL
RTEXT "IAM Port:", IDC_STATIC, 0, 55, 80, 10
EDITTEXT IDC_EDIT_auth_port, 85, 55, 85, 10, ES_AUTOHSCROLL | ES_NUMBER
RTEXT "IAM Expire Time:", IDC_STATIC, 0, 70, 80, 10
EDITTEXT IDC_EDIT_auth_expiration, 85, 70, 85, 10, ES_AUTOHSCROLL | ES_NUMBER
RTEXT "Secret ID:", IDC_STATIC, 0, 85, 80, 10
EDITTEXT IDC_EDIT_auth_secret_id, 85, 85, 85, 10, ES_AUTOHSCROLL
RTEXT "AWS Region:", IDC_STATIC, -8, 30, 80, 10
EDITTEXT IDC_EDIT_auth_region, 78, 30, 289, 10, ES_AUTOHSCROLL
RTEXT "IAM Host:", IDC_STATIC, -8, 50, 80, 10
EDITTEXT IDC_EDIT_auth_host, 78, 50, 289, 10, ES_AUTOHSCROLL
RTEXT "IAM Port:", IDC_STATIC, -8, 70, 80, 10
EDITTEXT IDC_EDIT_auth_port, 78, 70, 289, 10, ES_AUTOHSCROLL | ES_NUMBER
RTEXT "IAM Expire Time:", IDC_STATIC, -8, 90, 80, 10
EDITTEXT IDC_EDIT_auth_expiration, 78, 90, 289, 10, ES_AUTOHSCROLL | ES_NUMBER
RTEXT "Secret ID:", IDC_STATIC, -8, 110, 80, 10
EDITTEXT IDC_EDIT_auth_secret_id, 78, 110, 289, 10, ES_AUTOHSCROLL
END

IDD_TAB4 DIALOGEX 0, 0, 209, 281
Expand Down

0 comments on commit fe7ac60

Please sign in to comment.