Cut and paste the Admin Guide example. You need a space after -b option. (If anybody can translate this, I'm sure it would be appreciated.) > [root@kurling openldap]# ldapsearch -x -b'' -s base '(objectclass=*)' namingContexts No. Use ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts