directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: rev 55769 - incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/jaas
Date Thu, 28 Oct 2004 02:51:11 GMT
Author: erodriguez
Date: Wed Oct 27 19:51:10 2004
New Revision: 55769

Modified:
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/jaas/KdcSubjectLogin.java
Log:
More explicit way to set login configuration.

Modified: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/jaas/KdcSubjectLogin.java
==============================================================================
--- incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/jaas/KdcSubjectLogin.java
(original)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/jaas/KdcSubjectLogin.java
Wed Oct 27 19:51:10 2004
@@ -16,8 +16,6 @@
  */
 package org.apache.kerberos.kdc.jaas;
 
-import java.security.*;
-
 import javax.security.auth.*;
 import javax.security.auth.login.*;
 
@@ -26,10 +24,9 @@
 	private Subject kdcSubject;
 	
 	public KdcSubjectLogin(String principal, String passPhrase) {
-	
-		Security.setProperty("login.configuration.provider",
-					"org.apache.kerberos.kdc.jaas.Krb5Configuration");
-
+		
+		Configuration.setConfiguration(new Krb5Configuration());
+		
 			LoginContext lc = null;
 			try {
 				lc = new LoginContext(KdcSubjectLogin.class.getName(),

Mime
View raw message