2016-06-21 03:06:44 -05:00
|
|
|
.. _user_mapping_dialog:
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2018-06-15 03:14:12 -05:00
|
|
|
****************************
|
|
|
|
`User Mapping Dialog`:index:
|
|
|
|
****************************
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
Use the *User Mapping* dialog to define a new mapping of a user to a foreign
|
|
|
|
server.
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
The *User Mapping* dialog organizes the development of a user mapping through
|
|
|
|
the following dialog tabs: *General* and *Options*. The *SQL* tab displays the
|
|
|
|
SQL code generated by dialog selections.
|
2016-05-26 09:29:33 -05:00
|
|
|
|
|
|
|
.. image:: images/user_mapping_general.png
|
2018-01-11 10:58:30 -06:00
|
|
|
:alt: User Mapping dialog general tab
|
2019-03-08 09:29:05 -06:00
|
|
|
:align: center
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
Use the drop-down listbox in the *User* field in the *General* tab to identify
|
|
|
|
the connecting role:
|
2016-05-26 09:29:33 -05:00
|
|
|
|
|
|
|
* Select *CURRENT_USER* to use the name of the current role.
|
|
|
|
* Select *PUBLIC* if no other user-specific mapping is applicable.
|
|
|
|
* Select a pre-defined role name to specify the name of an existing user.
|
2018-01-11 10:58:30 -06:00
|
|
|
|
2016-05-26 09:29:33 -05:00
|
|
|
Click the *Options* tab to continue.
|
|
|
|
|
|
|
|
.. image:: images/user_mapping_options.png
|
2018-01-11 10:58:30 -06:00
|
|
|
:alt: User Mapping dialog options tab
|
2019-03-08 09:29:05 -06:00
|
|
|
:align: center
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
Use the fields in the *Options* tab to specify connection options; the accepted
|
|
|
|
option names and values are specific to the foreign data wrapper associated with
|
|
|
|
the server specified in the user mapping. Click the *Add* button to add an
|
|
|
|
option/value pair.
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2018-01-11 10:58:30 -06:00
|
|
|
* Specify the option name in the *Option* field.
|
|
|
|
* Provide a corresponding value in the *Value* field.
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
Click *Add* to specify each additional option/value pair; to discard an option,
|
|
|
|
click the trash icon to the left of the row and confirm deletion in the *Delete
|
|
|
|
Row* popup.
|
2016-05-26 09:29:33 -05:00
|
|
|
|
|
|
|
Click the *SQL* tab to continue.
|
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
Your entries in the *User Mapping* dialog generate a SQL command (see an
|
|
|
|
example below). Use the *SQL* tab for review; revisit or switch tabs to make
|
|
|
|
any changes to the SQL command.
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
Example
|
|
|
|
*******
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
The following is an example of the sql command generated by user selections in
|
|
|
|
the *User Mapping* dialog:
|
2016-05-26 09:29:33 -05:00
|
|
|
|
|
|
|
.. image:: images/user_mapping_sql.png
|
2018-01-11 10:58:30 -06:00
|
|
|
:alt: User Mapping dialog sql tab
|
2019-03-08 09:29:05 -06:00
|
|
|
:align: center
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
The example shown demonstrates a user mapping for the *hdfs_server*. The user is
|
|
|
|
*CURRENT_USER* with a password *secret*.
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
* Click the *Info* button (i) to access online help.
|
2016-05-26 09:29:33 -05:00
|
|
|
* Click the *Save* button to save work.
|
|
|
|
* Click the *Cancel* button to exit without saving work.
|
|
|
|
* Click the *Reset* button to restore configuration parameters.
|
|
|
|
|
|
|
|
|