DN base = addSearchData( new DN( "ou=system" ), 3, 10 );
DN userDn = new DN( "uid=" + uid + ",ou=users,ou=system" );
results.clear();
LdapConnection userCtx = getConnectionAs( userDn, password );
Cursor<SearchResponse> cursor = userCtx.search( base.getName(), filter, scope, "*" );
int counter = 0;
while ( cursor.next() )
{
Entry result = ( ( SearchResultEntry ) cursor.get() ).getEntry();