an ldapsearch query to find a servers naming contexts

ldapsearch -h localhost -x -b '' -s base '(objectclass=*)' namingContexts