Solved

Using ktpass in Windows domain

Posted on 2015-01-27
1
849 Views
Last Modified: 2015-02-26
Hi experts!

I found a HowTo for SSO-Authentication with apache and ActiveDirectory.
In this HowTo they tell me to use following command:

ktpass -princ HTTP/otrsserver.domain1.net@DOMAIN1.NET -mapuser DOMAIN1\OTRSUSER -pass xxxxxxxxx -out c:\temp\otrsserver.keytab

Open in new window


Is it save to issue that command on my productional domain-controller?
Would this have any effect to my domain?

In a test lab I issued the command and got following output:

Targeting domain controller: dc1-test.test.local
Using legacy password setting method
Successfully mapped HTTP/dc-test.test.local to otrs.
WARNING: pType and account type do not match. This might cause problems.
Key created.
Output keytab to C:\otrsserver.keytab:
Keytab version: 0x502
keysize 77 HTTP/dc1-test.test.local@TEST.LOCAL ptype 0 (KRB5_NT_UNKNOWN
vno 4 etype 0x17 (RC4-HMAC) keylength 16 (0xfcc2sadasdasd8asd39050f2c587af)

Open in new window


Can anybody explain, what is happening there?

Thanks a lot!
0
Comment
Question by:Systemadministration
1 Comment
 
LVL 27

Accepted Solution

by:
Dan McFadden earned 500 total points
ID: 40579807
The thing that jumps out is the WARNING line about ptype.

Have you tried adding the ptype option like so:  -ptype KRB5_NT_PRINCIPAL

Here is an article that talks about the difference of using computer accounts (like you're doing) verse using a user account:  http://blog.scottlowe.org/2006/08/21/more-on-kerberos-authentication-against-active-directory/

Here is a detailed article from the same guy, about Kerberos, apache and SSO:  http://blog.scottlowe.org/2006/08/10/kerberos-based-sso-with-apache/

Dan
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question