Home > Articles > Security > Software Security

This chapter is from the book

Authentication

The first security portal most users must pass through on their way to gaining access to a DB2 UDB instance or a database is a process known as authentication. The purpose of authentication is to verify that a user really is who they say they are. Typically, authentication is performed by an external security facility that is not part of DB2 UDB. This security facility may be part of the operating system (as is the case with AIX, Solaris, Linux, HP-UX, Windows 2000/NT, and many others), it may be a separate add-on product (for example, Distributed Computing Environment (DCE) Security Services), or it may not exist at all (which, by default, is the case with Windows 95, Windows 98, and Windows Millennium Edition). If a security facility does exist, it must be presented with two specific items before a user can be authenticated: a unique user ID and a corresponding password. The user ID identifies the user to the security facility, while the password, which is information that is known only by both the user and the security facility, is used to verify that the user is indeed who they claim to be.

Note

Because passwords are a very important tool for authenticating users, you should always require passwords at the operating system level if you want the operating system to perform the authentication for your database. Keep in mind that on most UNIX operating systems, undefined passwords are treated as NULL, and any user that has not been assigned a password will be treated as if they have a NULL password—from the operating system's perspective, this will be evaluated as being a valid match.

Where Does Authentication Take Place?

Because DB2 UDB can reside in environments comprised of multiple clients, gateways, and servers, each of which may be running on a different operating system, deciding where authentication is to take place can be a daunting task. So to simplify things, DB2 UDB uses a parameter in the DB2 Database Manager configuration file associated with every instance to determine how and where users are to be authenticated. The value assigned to this configuration parameter, often referred to as the authentication type, is set initially when an instance is created. (On the server side, the authentication type is specified during the instance creation process; on the client side, the authentication type is specified when a remote database is cataloged, which is usually performed using the Configuration Assistant.) Only one authentication type exists for each instance, and it controls access to that instance, as well as to all databases that fall under the instance's control.

In Version 8.1 of DB2 UDB, the following authentication types are available:

  • SERVER. Authentication occurs at the server workstation, using the security facility provided by the server's operating system. (The user ID and password provided by the user wishing to attach to an instance or connect to a database are compared to the user ID and password combinations stored at the server to determine whether the user is permitted to access the instance/database.) By default, this is the authentication type used when an instance is first created.

  • SERVER_ENCRYPT. Authentication occurs at the server workstation, using the security facility that is provided by the server's operating system. However, the password provided by the user wishing to attach to an instance or connect to a database stored on the server may be encrypted at the client workstation before it is sent to the server workstation for validation.

  • CLIENT. Authentication occurs at the client workstation or database partition where a client application is invoked, using the security facility that is provided by the client's operating system, assuming one is available. If no security facility is available, authentication is handled in a slightly different manner. (The user ID and password provided by the user wishing to attach to an instance or connect to a database are compared to the user ID and password combinations stored at the client/node to determine whether the user is permitted to access the instance or the database.)

  • KERBEROS. Authentication occurs at the server workstation, using a security facility that supports the Kerberos security protocol. The Kerberos security protocol is a protocol that performs authentication as a third-party service by using conventional cryptography to create a shared secret key. The key becomes the credentials used to verify the identity of users whenever local or network services are requested; this eliminates the need to pass a user ID and password across the network as ASCII text. (If both the client and the server support the Kerberos security protocol, the user ID and password provided by the user wishing to attach to an instance or connect to a database are encrypted at the client workstation and sent to the server for validation.) It should be noted that the KERBEROS authentication type is only supported on clients and servers that are using the Windows 2000, Windows XP, or Windows .NET operating system. In addition, both client and server workstations must either belong to the same Windows domain or belong to trusted domains.

  • KRB_SERVER_ENCRYPT. Authentication occurs at the server workstation, using either the KERBEROS or the SERVER_ENCRYPT authentication method. If the client's authentication type is set to KERBEROS, authentication is performed at the server using the Kerberos security system. On the other hand, if the client's authentication type is set to anything other than KERBEROS or if the Kerberos authentication service is unavailable, the server acts as if the SERVER_ENCRYPT authentication type was specified, and the rules of this authentication method apply.

Just as the authentication type for an instance on a server is set when the instance is first created, an authentication type is usually specified at each client workstation that will communicate with a server. Furthermore, the combination of authentication types specified at both the client and the server determine which authentication method is actually used. Figure 3-1 shows the combination of client and server authentication types that should be used when users are to be authenticated at the client workstation. Figure 3-2 shows the combinations of client and server authentication types that should be used when users are to be authenticated at the server.

03fig01.gifFigure 3-1. Authentication type combinations to use for client authentication.

03fig02.gifFigure 3-2. Authentication type combinations to use for server authentication.

Trusted Clients Versus Untrusted Clients

As you can see in Figure 3-1, if both the server and the client are configured to use the CLIENT authentication type, authentication occurs at the client workstation (if the database is a nonpartitioned database) or at the database partition where the client application is invoked from (if the database is a partitioned database), using the security facility that is provided by the client's operating system. But what happens if the client workstation is using an operating system that does not contain a tightly integrated security facility, and no separate add-on security facility has been made available? Does such a configuration compromise security? The answer is no. However, in such environments, the DB2 Database Manager for the instance at the server must be able to determine which clients will be responsible for validating users and which clients will be forced to let the server handle user authentication. To make this distinction, clients that use an operating system that contains an integrated security facility (for example, Windows NT, Windows 2000, all supported versions of UNIX, MVS, OS/390, VM, VSE, and AS/400) are classified as trusted clients, and clients that use an operating system that does not provide an integrated security facility (for example, Windows 95, Windows 98, and Windows Millennium Edition) are classified as untrusted clients.

The trust_allclnts parameter of a DB2 Database Manager configuration file helps the DB2 Database Manager for an instance on a server anticipate whether its clients are to be treated as trusted or untrusted. If this configuration parameter is set to YES (which is the default), the DB2 Database Manager assumes that any client that accesses the instance is a trusted client and that authentication will take place at the client. However, if this configuration parameter is set to NO, the DB2 Database Manager assumes that one or more untrusted clients will be used to access the server; therefore, all users must be authenticated at the server. (If this configuration parameter is set to DRDAONLY, only MVS, OS/390, VM, VSE, and OS/400 clients will be treated as trusted clients.) It is important to note that regardless of how the trust_allclnts parameter is set, whenever an untrusted client attempts to access an instance or a database, user authentication always takes place at the server.

In some situations, it may be desirable to authenticate users at the server, even when no untrusted clients will need access. In such situations, the trust_clntauth configuration parameter of a DB2 Database Manager configuration file can be used to control where trusted clients are to be validated. By accepting the default value for this parameter (which is CLIENT), authentication for trusted clients will take place at the client workstation. However, if the value for this parameter is changed to SERVER, authentication for all trusted clients will take place at the server.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020