directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1071264 - /directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/Krb5LoginConfiguration.java
Date Wed, 16 Feb 2011 14:25:29 GMT
Author: pamarcelot
Date: Wed Feb 16 14:25:29 2011
New Revision: 1071264

URL: http://svn.apache.org/viewvc?rev=1071264&view=rev
Log:
Fix for DIRAPI-41 (SASL connection information is not refreshed after a first SASL bind).

Modified:
    directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/Krb5LoginConfiguration.java

Modified: directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/Krb5LoginConfiguration.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/Krb5LoginConfiguration.java?rev=1071264&r1=1071263&r2=1071264&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/Krb5LoginConfiguration.java
(original)
+++ directory/shared/branches/m1/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/Krb5LoginConfiguration.java
Wed Feb 16 14:25:29 2011
@@ -43,8 +43,14 @@ public class Krb5LoginConfiguration exte
     public Krb5LoginConfiguration()
     {
         String loginModule = "com.sun.security.auth.module.Krb5LoginModule";
+
+        HashMap<String, Object> options = new HashMap<String, Object>();
+
+        // TODO: this only works for Sun JVM
+        options.put( "refreshKrb5Config", "true" );
+        
         LoginModuleControlFlag flag = LoginModuleControlFlag.REQUIRED;
-        configList[0] = new AppConfigurationEntry( loginModule, flag, new HashMap<String,
Object>() );
+        configList[0] = new AppConfigurationEntry( loginModule, flag, options );
     }
 
 



Mime
View raw message