Hi,

I really appreciate all the CAS gurus providing a fast response and helping
out.

I have the following environment for our test application.
j2sdk 1.4.2_17
Tomcat 5.0
Mysql 4.1.7

I am trying to do SSO using the following CAS version in our test
environment
cas server 2.0.6
cas client java 2.1.1

I am following the awesome article posted by Chris Dunne
http://www-128.ibm.com/developerworks/library/wa-singlesign/

So far we managed to successfully have CAS working with our Tomcat and it
works with the HelloWorldExample Servlet.

I went ahead with the instructions provided to use kerberos inorder to
authenticate with Active Directory on Windows Server 2003.

On doing all the new configuration of placing the cas_jaas.conf, krb5.conf
and setketberosjvmoptions.bat in the tomcat home directory and changing the
cas web.xml file to use the KerberosAuthHandler.java,CASCallbackHandler.java
as suggested in the article.

I started setketberosjvmoptions.bat and then restarted the tomcat. I went to
HelloWorldExample Servlet and it redirected me to the CAS login page. On
entering the username and password and clicked the login button I got the
following error.

        java.lang.SecurityException: Unable to locate a login configuration

        com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)
        sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

        
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        java.lang.Class.newInstance0(Class.java:308)

        java.lang.Class.newInstance(Class.java:261)
        javax.security.auth.login.Configuration$3.run(Configuration.java:221)
        java.security.AccessController.doPrivileged(Native Method)
        
javax.security.auth.login.Configuration.getConfiguration(Configuration.java:215)

        javax.security.auth.login.LoginContext$1.run(LoginContext.java:170)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.login.LoginContext.init(LoginContext.java:167)
        javax.security.auth.login.LoginContext.<init>(LoginContext.java:404)

        
edu.yale.its.tp.cas.auth.provider.KerberosAuthHandler.authenticate(Unknown
Source)
        edu.yale.its.tp.cas.servlet.Login.doGet(Unknown Source)
        edu.yale.its.tp.cas.servlet.Login.doPost(Unknown Source)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


Does this mean its not able to find my cas_jaas.conf file? If yes how can I
fix this.

Am I missing something, It would be great if someone could help me out on
this.

Please help.

-- 
Regards
James Dcunha
WorQsmart LLC
(o) 602-803-2559
(c) 480-282-2596
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to