Is this the right way to test open Ldap in Suse Linux?

NSCSUSE:~ #
INSCSUSE:~ # ldapsearch -x -b ‘’ -s base ‘(objectclass=*)’ naming contexts

extended LDIF

LDAPv3

base <> with scope baseObject

filter: (objectclass=*)

requesting: naming contexts

dn:

search result

search: 2
result: 0 Success

numResponses: 2

numEntries: 1

INSCSUSE:~ #

INSCSUSE:~ #
INSCSUSE:~ # ldapsearch -x -b ‘’ -s base ‘(objectclass=*)’ naming contexts

extended LDIF

LDAPv3

base <> with scope baseObject

filter: (objectclass=*)

requesting: naming contexts

:frowning: is my syntax wrong?

This is what I changed in slapd.conf see below

BDB database definitions

#######################################################################

database bdb
suffix “dc=insc,dc=local”
checkpoint 1024 5
cachesize 10000
rootdn “cn=Manager,dc=insc,dc=local”

Cleartext passwords, especially for the rootdn, should

be avoid. See slappasswd(8) and slapd.conf(5) for details.

Use of strong authentication encouraged.

rootpw 2001Insc

The database directory MUST exist prior to running slapd AND

should only be accessible by the slapd and slap tools.

Mode 700 recommended.

directory /var/lib/ldap

Indices to maintain

index objectClass eq
“/etc/openldap/slapd.conf” 82L, 2535C

What am I doing wrong? This is the first time I am
configuring openldap help very much appreciated.

Bill :’(

I don’t have what I just did for this, but is something like this:

ldapsearch -x -D cn=manager,dc=insc,dc=local -W -b dc=insc,dc=local '(objectclass=*)'

When done correctly, it prints the entire database.

So wait a minute I put in my actual

domain dn? and it returns everything?

Would appreciate so much if you could paste
the exact syntax because it is difficult to get it right.

Now I’m getting this see below

INSCSUSE:/etc/openldap # ldapsearch -x -D cn=manager,dc=insc,dc=local -w -b dc=insc,dc=local ‘(objectclass=)’
ldap_sasl_bind(SIMPLE): Can’t contact LDAP server (-1)
INSCSUSE:/etc/openldap # /etc/init.d/ldap start
Starting ldap-server done
INSCSUSE:/etc/openldap # ldapsearch -x -D cn=manager,dc=insc,dc=local -w -b dc=insc,dc=local '(objectclass=
)’
ldap_bind: Invalid credentials (49)
INSCSUSE:/etc/openldap #

You need -W instead of -w. -w takes the following argument as the password. -W prompts for it.