Author: akarasulu
Date: Sun Nov 7 17:57:26 2004
New Revision: 56889
Modified:
incubator/directory/kerberos/trunk/eve-kerberos/etc/kerberos.properties
incubator/directory/kerberos/trunk/eve-kerberos/src/test/org/apache/kerberos/kdc/EmbeddedEveStoreTest.java
Log:
fixed a property that now makes the test cases run
Modified:
incubator/directory/kerberos/trunk/eve-kerberos/etc/kerberos.properties
==============================================================================
--- incubator/directory/kerberos/trunk/eve-kerberos/etc/kerberos.properties
(original)
+++ incubator/directory/kerberos/trunk/eve-kerberos/etc/kerberos.properties
Sun Nov 7 17:57:26 2004
@@ -46,18 +46,16 @@
# The working directory where Eve stores it's partition database files
eve.wkdir = ./target/eve
# The published LDAP schema's to initialize: all listed are required for
example.com
-# eve.schemas =
system,core,cosine,inetorgperson,krb5kdc
+# eve.schemas =
system,core,cosine,inetorgperson,krb5kdc
# Comma separated name of the partitions to attach/create
eve.db.partitions = example
# Suffix for the example partition
-eve.db.partition.suffix.example = dc=example,dc=com
+eve.db.partition.suffix.example = dc=example,dc=com
# User defined indices for the example partition
-eve.db.partition.indices.example = ou uid objectClass
krb5PrincipalName
+eve.db.partition.indices.example = ou uid objectClass krb5PrincipalName
# ObjectClass attribute values for the partition root at dc=example,dc=com
-eve.db.partition.attribute.example.objectClass = top domain
-# Domain component attribute for the root
-eve.db.partition.attribute.example.dc = example
+eve.db.partition.attributes.example = dn: dc=example,dc=com*objectClass:
top*objectClass: domain*dc: example
# -----------------------------------------------------------------------------
@@ -65,7 +63,7 @@
# -----------------------------------------------------------------------------
# Base DN to conduct one level searches for kdc entries
-kdc.entry.basedn = ou=People,dc=example,dc=com
+kdc.entry.basedn = ou=Users,dc=example,dc=com
# Initial LDIF file to import when first started
kdc.entry.ldif.file = ./src/ldif/example.com
Modified:
incubator/directory/kerberos/trunk/eve-kerberos/src/test/org/apache/kerberos/kdc/EmbeddedEveStoreTest.java
==============================================================================
---
incubator/directory/kerberos/trunk/eve-kerberos/src/test/org/apache/kerberos/kdc/EmbeddedEveStoreTest.java
(original)
+++
incubator/directory/kerberos/trunk/eve-kerberos/src/test/org/apache/kerberos/kdc/EmbeddedEveStoreTest.java
Sun Nov 7 17:57:26 2004
@@ -39,23 +39,25 @@
*/
public class EmbeddedEveStoreTest extends TestCase
{
-// public void testLoadFromEtc() throws Exception
-// {
-// Properties env = PropertiesUtils.getProperties( new File(
"./etc/kerberos.properties" ) );
-// EmbeddedEveStore store = new EmbeddedEveStore( env );
-// store.init();
-//
-// assertNull( store.getEntry( null ) );
-//
-// KerberosPrincipal akarasulu = new KerberosPrincipal( "[EMAIL
PROTECTED]" );
-// assertNotNull( store.getEntry( akarasulu ) );
-//
-// KerberosPrincipal erodriguez = new KerberosPrincipal( "[EMAIL
PROTECTED]" );
-// assertNotNull( store.getEntry( erodriguez ) );
-//
-// KerberosPrincipal nonexistent = new KerberosPrincipal( "[EMAIL
PROTECTED]" );
-// assertNull( store.getEntry( nonexistent ) );
-// }
+ public void testLoadFromEtc() throws Exception
+ {
+ Properties env = PropertiesUtils.getProperties( new File(
"./etc/kerberos.properties" ) );
+
+
+ EmbeddedEveStore store = new EmbeddedEveStore( env );
+ store.init();
+
+ assertNull( store.getEntry( null ) );
+
+ KerberosPrincipal akarasulu = new KerberosPrincipal( "[EMAIL
PROTECTED]" );
+ assertNotNull( store.getEntry( akarasulu ) );
+
+ KerberosPrincipal erodriguez = new KerberosPrincipal( "[EMAIL
PROTECTED]" );
+ assertNotNull( store.getEntry( erodriguez ) );
+
+ KerberosPrincipal nonexistent = new KerberosPrincipal( "[EMAIL
PROTECTED]" );
+ assertNull( store.getEntry( nonexistent ) );
+ }
public void testEveStore() throws Exception