Results 1 to 4 of 4

Thread: Where to put krb5.ini when using SPENEGO Extension

  1. #1
    Join Date
    Mar 2011
    Posts
    3

    Default Where to put krb5.ini when using SPENEGO Extension

    I'm following the write up here:

    http://blog.springsource.com/2009/09...rity-kerberos/

    There's no reference to where one would store a krb5.ini file.

    I don't see an object that stands out as a candidate for configuring.

    Is there a class I need to configure? Or somehow with SPNEGO isn't a krb5.ini file required?


    Thanks.

  2. #2
    Join Date
    Sep 2004
    Location
    Manchester, NH
    Posts
    1,236

    Default

    Typically krb5.ini would go in the Windows directory. It is possible to configure some attributes of the Java GSSAPI using Java system properties (-Dxx=yy). This article from Sun/Oracle describes in more detail how the GSSAPI finds the Kerberos configuration for your environment.
    Peter Mularien | Blog
    Author, Spring Security 3 (Book) - Packt Publishing, Available in print and eBook form
    SCJP 5, Oracle DBA
    Any postings are my own opinion, and should not be attributed to my employer or clients.


  3. #3
    Join Date
    Mar 2011
    Posts
    3

    Default

    Thanks pmularien.

    Um. Putting together a plan that requires storing a krb5.ini file in everyone's Windows folder in a Web application is a show stopper.

    Is there a place where one can get SPENEGO specific tips on how to configure the krb5.ini file in one's WEB-INF folder and read it from the classpath? Whatever I do - setting a system property in my web application seems like a kludge.

  4. #4
    Join Date
    Sep 2004
    Location
    Manchester, NH
    Posts
    1,236

    Default

    Sorry, just to clarify - the krb5.ini file is only needed on the web application server (the server running Spr Sec)! It's assumed that users already have some method of Kerberos authentication - in a Windows domain, this is typically managed using Active Directory; in a Linux domain, you are typically running in a Kerberized environment, so all the machines would have Kerberos client software anyway.

    Hope that helps!
    Peter Mularien | Blog
    Author, Spring Security 3 (Book) - Packt Publishing, Available in print and eBook form
    SCJP 5, Oracle DBA
    Any postings are my own opinion, and should not be attributed to my employer or clients.


Posting Permissions

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