configuration.setWorkingDirectory( basedir );
configuration.setAllowAnonymousAccess( true );
//configuration.setEnableNtp( false );
//configuration.setEnableKerberos( false );
//configuration.setEnableChangePassword( false );
LdapConfiguration config = new LdapConfiguration();
config.setIpPort( port );
configuration.setLdapConfiguration( config );
configuration.setEnableNetworking( enableNetworking );
configuration.setSynchPeriodMillis( 100 );
if ( configuration.getPartitionConfigurations() == null || ( configuration.getPartitionConfigurations() != null