concept Kerberos in category system administration

appears as: Kerberos, Kerberos
SOA Security

This is an excerpt from Manning's book SOA Security.

In the previous chapter, we showed you how to claim your identity using passwords. We discussed two schemes: one that requires you to submit your password in clear text and another that helps you guard your password from snoopers—people who intend to steal it while it is on the wire. Both schemes required you to first register a username and password with your service providers. Like most users, you probably reuse the same username and password when registering with several services. This makes you susceptible to repurposing attacks. Administrators of a service you are registered with can steal your username and password and spoof your identity on other services. Is there a way out of this mess without burdening yourself with the inhuman task of creating and remembering unique username and password combinations for each service? Kerberos is the security technology that first provided an answer to this question.

In fact, Kerberos answers several other significant questions related to SOA security. How do we ensure the confidentiality of messages while they are in transit? Can we detect tampering of messages by a man in the middle? Kerberos answers these questions as well.

In this chapter, we will introduce Kerberos and describe how it can be used for secure authentication in SOA. We will not delve into how Kerberos can be used for addressing other SOA security concerns such as protecting message confidentiality and detecting message tampering. Later chapters will describe how you can address these issues using PKI, a more scalable solution to the problems Kerberos was designed to address.

Given our reference to PKI as a superior technology compared to Kerberos, you might be wondering if you still need to learn about Kerberos. In our opinion, Kerberos is still a technology you will want to understand for a couple of reasons.

First, Kerberos was the first full-fledged security framework that tackled most of the security requirements we discuss in this book. In fact, several ideas in SOA security standards can be traced to Kerberos. A good understanding of Kerberos will help you better appreciate the more recent SOA security technologies we will introduce in the rest of the book.

The second reason why Kerberos is important is a practical one. Microsoft uses Kerberos (with its own extensions) for security in its server offerings. Therefore, if you are working with any enterprise solutions, it is likely that you will have to deal with Kerberos. This chapter will help you understand and develop the right solution in those cases.

In this chapter, we will first establish Kerberos as a viable security solution for SOA. We do that by identifying the requirements of an authentication system. Next, we will show how to put Kerberos into practice through an example. This example will show you how to use Java Generic Security Service (JGSS), a standard Java API for authentication with Kerberos. By the end of this chapter, you will see how WS-Security supports Kerberos and how you can implement this support in your web services and clients.

5.2.1. Basic ideas behind Kerberos

Kerberos solves the problem of service provider abuse with a basic set of ideas that are all clever but simple refinements of the ideas that underlie encryption. To understand Kerberos, you need to understand some principles of encryption. Even though we are going to discuss encryption in depth in the next chapter, we will provide here just enough background to understand Kerberos.