Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: gssapi-with-mic and a Windows AD KDC

Subject: Re: gssapi-with-mic and a Windows AD KDC
Date: Tue, 14 Mar 2006 08:25:20 -0700
You probably need to specify the encryption type when you run
ktpass.exe on the Domain Controller.  I didn't use the CRC encryption
but rather the MD5 encryption because I believe 2K3 does not support
CRC..

On your KTPASS.EXE command line, add the following switch: -crypto DES-CBC-MD5

You will also need to change your krb5.conf file and remove these entries:

        default_tkt_enctypes = des-cbc-crc
        default_tgs_enctypes = des-cbc-crc
        permitted_enctypes = des-cbc-crc


I have used this article from Microsoft to integrate Unix machines
into AD for authentication.  If you haven't seen it, it really is
pretty good:
http://www.microsoft.com/technet/security/topics/identitymanagement/idmanage/default.mspx


-Sam


On 3/14/06, Ian Grant <ian.grant@cl.cam.ac.uk> wrote:

On 14 Mar 2006, at 03:15, Cribb, Jay [GovSG] wrote:

Use des-cbc-crc for ticket and keytab export  (it's the type that's
usually the least common denominator)
Is this Windows 2000 or Windows 2003?

Thanks. It's 2003. I seem not to be able to get the enctype to be des-
cbc-crc for the ticket. In /etc/krb5.conf I have

[libdefaults]
        default_realm = AD.CL.CAM.AC.UK
        clockskew = 300
        default_tkt_enctypes = des-cbc-crc
        default_tgs_enctypes = des-cbc-crc
        permitted_enctypes = des-cbc-crc

The host keytab looks like this:

Keytab name: FILE:/etc/krb5.keytab
KVNO Principal
----
------------------------------------------------------------------------
--
   9 host/somehost.cl.cam.ac.uk@AD.CL.CAM.AC.UK (DES cbc mode with
CRC-32)

But my ticket for the host principal still ends up des-cbc-md5:

Ticket cache: FILE:/tmp/krb5cc_1696
Default principal: ig206@AD.CL.CAM.AC.UK

Valid starting     Expires            Service principal
03/14/06 10:50:28  03/14/06 20:50:32  krbtgt/
AD.CL.CAM.AC.UK@AD.CL.CAM.AC.UK
        renew until 03/15/06 10:50:28, Etype (skey, tkt): DES cbc
mode with CRC
32, ArcFour with HMAC/md5
03/14/06 10:50:47  03/14/06 20:50:32  host/
somehost.cl.cam.ac.uk@AD.CL.CAM.AC.UK
        renew until 03/15/06 10:50:28, Etype (skey, tkt): DES cbc
mode with CRC
32, DES cbc mode with RSA-MD5



<Prev in Thread] Current Thread [Next in Thread>