-
May 25th, 2011, 04:40 PM
#1
Where is the current example/tutorial for spring security spnego
i have been following this: http://blog.springsource.com/2009/09...rity-kerberos/ spring spnego tutorial from 2009 and the example code wont build and the tutorial seem a bit old. Where can I find current info or examples on this?
the tutorial mentions "If you open the security.xml file of the sample application, which is under /src/main/webapp/WEB-INF, you see a basic Spring Security configuration which uses the new Kerberos module." could this be referring to spnego.xml?
Last edited by Arthur Ulfeldt; May 25th, 2011 at 05:17 PM.
Reason: added example
-
May 26th, 2011, 04:18 AM
#2
You can checkout the current project source from git.
-
May 26th, 2011, 01:27 PM
#3
I'm asking about tutorials/examples/howtos or other ways of figuring out how to use this. I get the same results from the sample code in git that i got from the link on the 2009 blog post. Are there any examples available of this module being used? (is this module being used?)
-
May 26th, 2011, 01:59 PM
#4
javax.security kerberos seems to want a password and is upset that it is running non-interactivly:
Caused by: javax.security.auth.login.LoginException: Unable to obtain password from user
at com.sun.security.auth.module.Krb5LoginModule.promp tForPass(Krb5LoginModule.java:789)
at com.sun.security.auth.module.Krb5LoginModule.attem ptAuthentication(Krb5LoginModule.java:654)
at com.sun.security.auth.module.Krb5LoginModule.login (Krb5LoginModule.java:542)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
where can i specify this in spenego.xml?
<bean
class="org.springframework.security.extensions.ker beros.SunJaasKerberosTicketValidator">
<property name="servicePrincipal" value="HTTP/aulfeldt-hta-nightly@wad.eng.hytrust.com" />
<!-- Setting keyTabLocation to a classpath resource will most likely not work in a Java EE application Server -->
<!-- See the Javadoc for more information on that -->
<property name="keyTabLocation" value="/WEB-INF/http-web.keytab" />
<property name="debug" value="true" />
</bean>
-
May 27th, 2011, 04:19 PM
#5
Please just post one thread? There is no tutorial per se, but your best bet is probably the numerous samples and unit tests that are included in the SPNEGO module distribution.
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.
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
-
Forum Rules