Skip to content
Permalink
Browse files
Fixed root DSE access (abandon requests after wrong handling of searc…
…h cursor)
  • Loading branch information
semancik committed Jun 14, 2021
1 parent eb142f4 commit 06d26e840ee316b5f510ab48019c6390ec972747
Showing 1 changed file with 5 additions and 1 deletion.
@@ -4301,7 +4301,7 @@ public boolean exists( Dn dn ) throws LdapException
@Override
public Entry getRootDse() throws LdapException
{
return lookup( Dn.ROOT_DSE, SchemaConstants.ALL_USER_ATTRIBUTES_ARRAY );
return lookup( Dn.ROOT_DSE, SchemaConstants.ALL_ATTRIBUTES_ARRAY );
}


@@ -4639,6 +4639,10 @@ private void fetchRootDSE( String... explicitAttributes ) throws LdapException
if ( cursor.next() )
{
rootDse = cursor.get();
// We have to call cursor.next() here, as we need to make sure that the "done" status of the cursor
// is properly updated. Otherwise the subsequent cursor.close() initiates an ABANDON operation to
// stop the search, which is in fact finished already.
cursor.next();
}
else
{

0 comments on commit 06d26e8

Please sign in to comment.