LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-12-2012, 04:58 AM   #1
fritz001
Member
 
Registered: Aug 2004
Posts: 176

Rep: Reputation: 18
Exclamation Rhel 6 & kerberos


Hello everyone,

For a couple of days I'm trying to make kerberos auth working... but so far no luck

so:

my setup:

SERVER - dns in place, domain example1.com

/etc/krb5.conf

default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log

[libdefaults]
default_realm = EXAMPLE1.COM
dns_lookup_realm = false
dns_lookup_kdc = false
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true

[realms]
EXAMPLE1.COM = {
kdc = example1.com
admin_server = example1.com
}

[domain_realm]
.example1.com = EXAMPLE1.COM
example1.com = EXAMPLE1.COM

cat /var/kerberos/krb5kdc/kadm5.acl
*/admin@EXAMPLE1.COM *
*/admin *

cat /var/kerberos/krb5kdc/kdc.conf
[kdcdefaults]
kdc_ports = 88
kdc_tcp_ports = 88

[realms]
EXAMPLE1.COM = {
#master_key_type = aes256-cts
acl_file = /var/kerberos/krb5kdc/kadm5.acl
dict_file = /usr/share/dict/words
admin_keytab = /var/kerberos/krb5kdc/kadm5.keytab


kadmin.local -p r00t/admin -r EXAMPLE1.COM

addprinc -randkey host/srv1 <-> internal name of server
addprinc -randkey host/test-machine2 <-> internal name of client machine
ktadd -k /etc/krb5.keytab host/srv1
ktadd -k /etc/krb5.keytab host/test-machine2


kadmin.local -q list_principals
Authenticating as principal user1/admin@EXAMPLE1.COM with password.
K/M@EXAMPLE1.COM
r00t/admin@EXAMPLE1.COM
host/srv1@EXAMPLE1.COM
host/test-machine2@EXAMPLE1.COM
kadmin/admin@EXAMPLE1.COM
kadmin/changepw@EXAMPLE1.COM
kadmin/srv1@EXAMPLE1.COM
krbtgt/EXAMPLE1.COM@EXAMPLE1.COM
user1/admin@EXAMPLE1.COM


on test-machine2
cat /etc/krb5.conf
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log

[libdefaults]
default_realm = EXAMPLE1.COM
dns_lookup_realm = false
dns_lookup_kdc = false
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true

[realms]
EXAMPLE1.COM = {
kdc = example1.com
admin_server = example1.com
}

[domain_realm]
.example1.com = EXAMPLE1.COM
example1.com = EXAMPLE1.COM

kinit user1/admin

kadmin addprinc -randkey host/test-machine2

kadmin ktadd -k /etc/krb5.keytab host/test-machine2


however ssh from test-machine2 to srv1 failed:

debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-interactive
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1: Delegating credentials
debug1: Delegating credentials
debug1: Unspecified GSS failure. Minor code may provide more information
Generic error (see e-text)


So....... am I doing something wrong ????????????
 
Old 04-13-2012, 05:23 PM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Though this discussion is in Ubuntu forum, http://ubuntuforums.org/showthread.php?t=794765, I'm not sure if this may help you but you can take a look into this discussion, maybe you get some help.

BTW, did you go through the docs on redhat website, http://docs.redhat.com/docs/en-US/Re..._Kerberos.html
 
Old 04-14-2012, 05:49 AM   #3
fritz001
Member
 
Registered: Aug 2004
Posts: 176

Original Poster
Rep: Reputation: 18
Well, problem fixed:
looks like KERBEROS is very picky when it's about DNS settings: I've got some minor issues with my DNS , but now everything it's OK
 
  


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 in RHEL Felipe Linux - Server 10 08-10-2010 07:58 AM
Please post simple & working configuations Server and Client for KERBEROS,& TUTORIAL frenchn00b Debian 4 09-20-2009 08:44 AM
integrate Samba PDC & RHDS &DNS &DHCP on one RHEL 5 server marcbachman Linux - Server 0 07-03-2008 10:49 AM
can't get Kerberos telnet daemon running on RHEL 3 nickgarnett Linux - Networking 0 11-21-2006 04:58 PM
rhel put kerberos headers in wrong place Ratclaws Linux - Enterprise 0 12-09-2005 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:12 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