mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Fixed bug where if refreshKrb5Config is true and a krb5.conf|ini is not used
an error occurs. git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@10591 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -678,8 +678,14 @@ public final class LoginDialog {
|
||||
System.setProperty("java.security.krb5.debug","false");
|
||||
System.setProperty("sun.security.krb5.debug","false");
|
||||
}
|
||||
|
||||
String ssoMethod = localPref.getSSOMethod();
|
||||
if(!ModelUtil.hasLength(ssoMethod)) {
|
||||
ssoMethod = "file";
|
||||
}
|
||||
|
||||
System.setProperty("javax.security.auth.useSubjectCredsOnly", "false");
|
||||
GSSAPIConfiguration config = new GSSAPIConfiguration();
|
||||
GSSAPIConfiguration config = new GSSAPIConfiguration( ssoMethod.equals("file") );
|
||||
Configuration.setConfiguration(config);
|
||||
|
||||
LoginContext lc;
|
||||
@ -709,11 +715,6 @@ public final class LoginDialog {
|
||||
//useSSO(false);
|
||||
}
|
||||
|
||||
String ssoMethod = localPref.getSSOMethod();
|
||||
if(!ModelUtil.hasLength(ssoMethod)) {
|
||||
ssoMethod = "file";
|
||||
}
|
||||
|
||||
String ssoKdc;
|
||||
if(ssoMethod.equals("dns")) {
|
||||
ssoKdc = getDnsKdc(princRealm);
|
||||
|
||||
Reference in New Issue
Block a user