在应用程序已经建立与DB 2服务器的连接之后,应用程序可以在后端切换与受信任上下文相关联的用户。
After the application has established a trusted connection with the DB2 server, the application may switch users associated with the trusted context object in the backend.
受信任上下文是一个对象,它为用户提供一组特定的特权,当用户通过一个受信任的连接连接到数据库时,便可以使用它。
A trusted context is an object that gives users a specific set of privileges and is available when the user connects to the database through a trusted connection.
现在,您知道了如何配置两种TAI选项——使用信任用户或信任连接——在决定使用哪种配置的时候需要考虑各自的优缺点。
Now that you know how to set up both TAI options — using a trusted user or a trusted connection — consider the pros and cons of each to decide which to use.
而且,由于可以以很少的连接资源切换用户,而不需要身份验证,受信任上下文是商业应用程序的理想选择。
Furthermore, the ability to switch users with minimum connection resources and without authentication, makes trusted context an ideal choice for business applications.
连接由一个特定用户实现,并在可信任的客户端进行。
The connection is made by a specific user and made from a trusted client.
在建立受信任连接之后,应用程序将用户切换到受信任上下文中定义的允许的用户。
After the trusted connection has been established, the application can then switch the user to an allowed user defined in the trusted context.
您可以用两种方法配置TAI选项:使用信任用户或信任连接。
You can set up the TAI option in two ways: with a trusted user or with a trusted connection.
通过以下方法,可以为另一个用户建立和切换受信任连接。
A trusted connection can be established and switched for another user by.
下面的例子展示如何在一个CLI应用程序中,为用户ID“newton”建立到testdb数据库的受信任连接。
The example below shows how to establish a trusted connection for user ID "Newton" to testdb database in a CLI application.
DMZ应该包括一些进程,例如,在用户连接到达后端“受信任”区之前,Web服务器或代理服务器将终止用户的连接。
The DMZ should consist of processes like Web servers or proxy servers that will terminate the user's connection before it reaches the backend "trusted" zone.
为了切换一个受信任连接上的用户,应用程序必须首先调用xa_end (TM_SUCCESS),并通过调用SQLSetConnectAttr指定新的用户ID和可选的密码。
In order to switch a user on a trusted connection, the application must first call xa_end (TM_SUCCESS) and specify the new user ID and optional password by calling SQLSetConnectAttr.
信任的这床毯子危害由使用户遭到的安全上冒险公共和半保密的网络,包括电缆线连接,无线的公共的存取和企业网络。
This blanket of trust jeopardizes security by subjecting users to risks on both public and semi-public networks, including cable connections, public access wireless and enterprise networks.
信任的这床毯子危害由使用户遭到的安全上冒险公共和半保密的网络,包括电缆线连接,无线的公共的存取和企业网络。
This blanket of trust jeopardizes security by subjecting users to risks on both public and semi-public networks, including cable connections, public access wireless and enterprise networks.
应用推荐