directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1042856 - /directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-test/src/test/java/org/apache/directory/server/kerberos/kdc/SaslGssapiBindITest.java
Date Mon, 06 Dec 2010 23:29:59 GMT
Author: elecharny
Date: Mon Dec  6 23:29:59 2010
New Revision: 1042856

URL: http://svn.apache.org/viewvc?rev=1042856&view=rev
Log:
o Removed some constants
o removed some printstacktrace

Modified:
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-test/src/test/java/org/apache/directory/server/kerberos/kdc/SaslGssapiBindITest.java

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-test/src/test/java/org/apache/directory/server/kerberos/kdc/SaslGssapiBindITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-test/src/test/java/org/apache/directory/server/kerberos/kdc/SaslGssapiBindITest.java?rev=1042856&r1=1042855&r2=1042856&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-test/src/test/java/org/apache/directory/server/kerberos/kdc/SaslGssapiBindITest.java
(original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-test/src/test/java/org/apache/directory/server/kerberos/kdc/SaslGssapiBindITest.java
Mon Dec  6 23:29:59 2010
@@ -67,7 +67,6 @@ import org.apache.directory.server.core.
 import org.apache.directory.server.core.jndi.CoreContextFactory;
 import org.apache.directory.server.core.kerberos.KeyDerivationInterceptor;
 import org.apache.directory.server.i18n.I18n;
-import org.apache.directory.server.kerberos.shared.store.KerberosAttribute;
 import org.apache.directory.server.ldap.handlers.bind.cramMD5.CramMd5MechanismHandler;
 import org.apache.directory.server.ldap.handlers.bind.digestMD5.DigestMd5MechanismHandler;
 import org.apache.directory.server.ldap.handlers.bind.gssapi.GssapiMechanismHandler;
@@ -256,9 +255,9 @@ public class SaslGssapiBindITest extends
         attrs.put( "cn", cn );
         attrs.put( "sn", sn );
         attrs.put( "uid", uid );
-        attrs.put( SchemaConstants.USER_PASSWORD_AT, userPassword );
-        attrs.put( KerberosAttribute.KRB5_PRINCIPAL_NAME_AT, principal );
-        attrs.put( KerberosAttribute.KRB5_KEY_VERSION_NUMBER_AT, "0" );
+        attrs.put( "userPassword", userPassword );
+        attrs.put( "krb5PrincipalName", principal );
+        attrs.put( "krb5KeyVersionNumber", "0" );
 
         return attrs;
     }
@@ -350,7 +349,6 @@ public class SaslGssapiBindITest extends
                 }
                 catch ( NamingException e )
                 {
-                    e.printStackTrace();
                     fail( "Should not have caught exception:  " + e.getMessage() + e.getRootCause()
);
                 }
 



Mime
View raw message