How to set up Kerberos authentication? (some code :)

How to set up Kerberos authentication? (some code :)

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
How to set up Kerberos authentication? (some code :) overbored 08-18-2005
Posted by overbored on August 18, 2005, 5:55 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Hi all,

I'm trying to get this simple test program to work for Kerberos:

http://www.pluralsight.com/samplecontent/sspi_auth.cpp

It works when I change the string in main() to "NTLM", but when using
"Keberos", AcquireCredentialsHandle() fails ("The logon attempt
failed").

Can anybody tell me if there's something I need to set up in Windows
first for this program to work? According to the doc at:

http://www.microsoft.com/windows2000/techinfo/howitworks/security/kerber
os.asp

I need to enable the AS and the TGS, but I found no such services in the
Services control panel. Does Kerberos authentication only work when you
have domains, hence AD, hence Windows 2000 Server? In that case, is this
program meant to be run on the DC (since that's the machine with the
passwords)? Or can this be run on any of the domain members (meaning the
Kerberos SSP will actually communicate with the DC behind the scenes)?

Thanks in advance for any help!

Posted by Brian Komar on August 19, 2005, 7:35 am
If you were  Registered and logged in, you could reply and use other advanced thread options
The Web server must be a member of a Windows 2000 or Windows Server 2003
domain to use Kerberos authentication. By setting the authentication
requirements on the Web server to integrated, you will get your Kerberos
authentication.

In addition, you may have to set the computer account of the Web server
to be "trusted for Delegation" (this is set in the properties of the
computer account in Active Directory). This will allow the Web server to
impersonate the user through Kerberos impersonation.

HTH,
Brian


overboredNO@SPAMoverbored.net says...
> Hi all,
>
> I'm trying to get this simple test program to work for Kerberos:
>
> http://www.pluralsight.com/samplecontent/sspi_auth.cpp
>
> It works when I change the string in main() to "NTLM", but when using
> "Keberos", AcquireCredentialsHandle() fails ("The logon attempt
> failed").
>
> Can anybody tell me if there's something I need to set up in Windows
> first for this program to work? According to the doc at:
>
> http://www.microsoft.com/windows2000/techinfo/howitworks/security/kerber
> os.asp
>
> I need to enable the AS and the TGS, but I found no such services in the
> Services control panel. Does Kerberos authentication only work when you
> have domains, hence AD, hence Windows 2000 Server? In that case, is this
> program meant to be run on the DC (since that's the machine with the
> passwords)? Or can this be run on any of the domain members (meaning the
> Kerberos SSP will actually communicate with the DC behind the scenes)?
>
> Thanks in advance for any help!
>

Similar ThreadsPosted
Kerberos pre authentication question June 30, 2006, 9:21 am
Kerberos Authentication in Mixed environment January 10, 2006, 12:41 pm
Intermittent Kerberos authentication failure June 14, 2007, 2:26 pm
Forcing XP Clients to use NTLM instead of Kerberos Authentication July 11, 2006, 1:21 am
Kerberos with "Selective Authentication" over forest Trust October 30, 2006, 10:12 am
Vb.Net code for user log-on network authentication August 21, 2006, 1:56 pm
Code signing a "Flash" .EXE file issue / Code sign any .EXE? March 6, 2008, 6:48 am
Kerberos UDP vs TCP November 14, 2006, 4:18 am
Kerberos Delegation July 6, 2005, 2:06 pm
Bug in Kerberos SSP within SSPI?? July 28, 2005, 4:46 am

The site map in XML format XML site map

Contact Us | Privacy Policy