try
{
String cn = "entry-" + System.currentTimeMillis();
DN dn = new DN( "cn=" + cn + "," + config.getBaseDn() );
Entry entry = new DefaultEntry();
entry.add( "objectclass", "person" );
entry.add( "cn", cn );
entry.add( "sn", cn );
entry.setDn( dn );
LOG.debug( "adding entry with dn: {}" + dn );
connection.add( entry );
}
catch ( Exception e )