Results 1 to 10 of 12

Thread: spring secutiry cant read any principal from any keytab?

Threaded View

  1. #1

    Default spring secutiry cant read any principal from any keytab?

    I have a keytab with one principal in it:

    Code:
    ktutil:  rkt http-web.keytab
    ktutil:  l
    slot KVNO Principal
    ---- ---- ---------------------------------------------------------------------
       1    3 HTTP/aulfeldt.hta.nightly@WAD.ENG.HYTRUST.COM
    This keytab was generated on a the win 2k8 domain controller with this command:

    Code:
     ktpass /out http-web.keytab /mapuser aulfeldt-hta-nightly@WAD.ENG.HYTRUST.COM /princ HTTP/aulfeldt.hta.nightly@WAD.ENG.HYTRUST.COM /pass *
    which was coppied over the the test web server used in spnego.xml:

    Code:
    <bean
        class="org.springframework.security.extensions.kerberos.SunJaasKerberosTicketValidator">
       <property name="servicePrincipal"
                     value="HTTP/aulfeldt.hta.nightly@WAD.ENG.HYTRUST.COM" />
      <property name="keyTabLocation" value="/WEB-INF/http-web.keytab" />
      <property name="debug" value="true" />
    </bean>
    but fails to find the principal:
    Code:
    Key for the principal HTTP/aulfeldt.hta.nightly@WAD.ENG.HYTRUST.COM not available in jndi:/localhost/spring-security-kerberos-sample-1
    .0.0.CI-SNAPSHOT/WEB-INF/http-web.keytab
                    [Krb5LoginModule] authentication failed 
    Unable to obtain password from user
    I have tried joining the web server (Centos 5.5, tomcat6) to the AD WAD.ENG.HYTRUST.COM and can login using AD credentials and then using a principal from /etc/krb5.keytab just to see if it can be read... same response. I also tried lots of variants on uppercase and lowercaseing the names.

    ps checked it out from git this morning.
    Last edited by Arthur Ulfeldt; May 26th, 2011 at 05:53 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •