LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-03-2012, 05:58 PM   #1
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Kerberos: Clarification of principals


I've learning how to use Kerberos. I've installed a KDC and it works. I can add user principals and authenticate as any user principal I've added. So my question is NOT about installing/configuring Kerberos for either the server or the client.

My question is a clarification of the different roles of the principals... specifically what a host principal's purpose is.

Before I get a response explaining that a "host" principal is a principal for each host in a realm, a "service" principal is for each service (e.g. ssh, nfs, ldap, etc.), a "user" principal for each user... let me just say (obviously) I know that.

What I don't know is how host principals fit into the overall scheme.

My, very brief, understanding of the Kerberos process is:
1. There is an authentication back-and-forth to start (preauthentication and retrieval of a TGT). My understanding is that preauthentication and issuance of the TGT encrypt the communication based on the user's password.

2. When the user wants to access a service, such as ldap, the user resubmits the TGT to the KDC. As part of the KDC's response, the user gets a ticket for the service. The ticket is encrypted with the service principal key (e.g. keytable entries for ldap/my.host.name@KERB.REALM). In addition, there is a session key included with the ticket that the user and service will use to encrypt their communications with one another.

3. The user submits the service request, encrypted with the session key, along with the service ticket obtained from the KDC to the service provider.

4. If everything decrypts properly and makes sense, the user's request is processed and the response sent back to the user, encrypted by the session key.

At no point in that exchange is any host principal being used--unless my understanding is faulty.

So, what are host principals for? Are they a fallback (e.g. if an ssh server cannot find an ssh-specific principal that it will default to the host principal)? Are they a generic principal (e.g. a non-user principal that would allow a host to perform certain automated tasks--such as queries to an LDAP server for some routine maintenance)?
 
Old 01-17-2012, 02:26 AM   #2
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by Dark_Helmet View Post
I've learning how to use Kerberos. I've installed a KDC and it works. I can add user principals and authenticate as any user principal I've added. So my question is NOT about installing/configuring Kerberos for either the server or the client.

My question is a clarification of the different roles of the principals... specifically what a host principal's purpose is.

Before I get a response explaining that a "host" principal is a principal for each host in a realm, a "service" principal is for each service (e.g. ssh, nfs, ldap, etc.), a "user" principal for each user... let me just say (obviously) I know that.

What I don't know is how host principals fit into the overall scheme.

My, very brief, understanding of the Kerberos process is:
1. There is an authentication back-and-forth to start (preauthentication and retrieval of a TGT). My understanding is that preauthentication and issuance of the TGT encrypt the communication based on the user's password.

2. When the user wants to access a service, such as ldap, the user resubmits the TGT to the KDC. As part of the KDC's response, the user gets a ticket for the service. The ticket is encrypted with the service principal key (e.g. keytable entries for ldap/my.host.name@KERB.REALM). In addition, there is a session key included with the ticket that the user and service will use to encrypt their communications with one another.

3. The user submits the service request, encrypted with the session key, along with the service ticket obtained from the KDC to the service provider.

4. If everything decrypts properly and makes sense, the user's request is processed and the response sent back to the user, encrypted by the session key.

At no point in that exchange is any host principal being used--unless my understanding is faulty.

So, what are host principals for? Are they a fallback (e.g. if an ssh server cannot find an ssh-specific principal that it will default to the host principal)? Are they a generic principal (e.g. a non-user principal that would allow a host to perform certain automated tasks--such as queries to an LDAP server for some routine maintenance)?
In Windows land, when using the Network Service account the host principal is used.

I'm not entirely sure if the host principal is used, in the same way, in *nix land.

The obvious use of the host principal is to establish that the host is a trusted host, I think.

Last edited by manyrootsofallevil; 01-17-2012 at 02:29 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh and kerberos error: Server not found in Kerberos database Felipe Linux - Server 1 01-17-2011 03:12 AM
Cannot delete expired principal from kerberos system, how delete principals in kerber sarajevo Linux - Security 0 10-19-2007 11:23 AM
I just need some clarification Duneatreides Linux - Newbie 2 03-12-2007 05:48 AM
LXer: Open Source: Understanding the Core Principals LXer Syndicated Linux News 0 02-07-2007 03:21 PM
kerberos principals mesh2005 Linux - Networking 0 12-21-2005 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration