LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-18-2014, 07:52 PM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Rep: Reputation: 32
Linux and Active Directory


I am wanting to make it to where whenever I want to log into my Linux machines, I can use a username and password that is on my Active Direcory server. Before anyone tells me about power broker, I am aware of it's existence and I personally think it's a pain in the neck and the alternatives that I have been reading about have been showing more hope than power broker ever could. I am wanting to use Kerberos, LDAP and PAM in order to accomlish this. I am stuck in the kerberos part of the installation, All of the users on the windows server and running and each one has a password. Things in the Linux end of everything is what is giving me trouble.

Here is my krb5.conf file.
Code:
[libdefaults]
ticket_lifetime = 600
default_realm = BARONOBEEFDIP.JOSH
default_tkt_enctypes = des-hmac-sha1 des-cbc-crc
default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc

[realms]
BARONOBEEFDIP.JOSH = {
kdc = 192.168.1.101
default_domain = BARONOBEEFDIP.JOSH
}

[domain_realm]
.baronobeefdip.josh = BARONOBEEFDIP.JOSH
baronobeefdip.josh = BARONOBEEFDIP.JOSH

[kdc]
profile = /etc/krb5kdc/kdc.conf

[logging]
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmin.log
default = FILE:/var/log/krb5lib.log
When I run the kinit command with the username and domain, I get this message.
Code:
kinit: No supported encryption types (config file error?) while getting initial credentials
After I comment out the lines in the krb5.conf file
Code:
default_tkt_enctypes = des-hmac-sha1 des-cbc-crc
default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc
and I run the kinit command again, I am prompted for a password, I enter the password and I get this message.
Code:
kinit: KDC reply did not match expectations while getting initial credentials
What exactly is going on here, I know there is a way to get Linux to log into the active directory server, I have read about it working without having to use something like power broker. Thanks for your time. I also plan to try and integrate a number of other services with AD, This one was the first on the list.
 
Old 05-02-2014, 02:33 PM   #2
aedurkee
LQ Newbie
 
Registered: Sep 2012
Location: Tonawnada, NY
Distribution: CentOS Redhat ubuntu mint
Posts: 15

Rep: Reputation: Disabled
What distro and version of Linux are you running? I've gotten nss_ldap and pam to work under RedHat 4,5, and 6 (6 without sss). I did the basics for solaris but not the final tweaks. Kerberos for solaris required a policy change on the domain controllers to allow the flavor of encryption and running ktpass for the setspn record and the keytab file (and of course the UNIX Role). I might be able to help more if your using an envirnoment similiar to mine. I didn't find an exact match in the online howto's but enough information to piece things together.
 
  


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
Active directory and Linux. jokar.mohsen Linux - Server 11 11-15-2013 04:53 AM
Linux Active Directory ?? furquan Linux - Software 3 02-14-2013 06:51 AM
linux active directory yogaboy Linux - General 14 02-18-2007 12:03 PM
Active Directory in Linux alsharifhoussam Linux - Software 2 02-17-2007 10:02 AM
Linux and Active Directory aznluvsmc Linux - Networking 1 07-11-2005 04:05 PM

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

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