result 32: no such object, ldapsearch -x empty database

result 32: no such object, ldapsearch -x empty database

result 32: no such object, ldapsearch -x empty database

I first noticed this issue when building a Fresh LDAP server for blogging, Fortunately it was not an “emergency” build, otherwise i would have been SOL. Slapd 2.4.23 version made some changes to LDAP on CentOS 6

LDAP slapd configuration: I first noticed this issue when building a Fresh LDAP server for blogging, Fortunately it was not…

In this case, we do a ldapsearch -x, and noting comes up in the database, even though everything works with phpLdapAdmin for some reason. Wierd, so what could the problem be?

LDAP slapd configuration: In this case, we do a ldapsearch -x, and noting comes up in the database, even though everything…

su to root

LDAP slapd configuration: su to root

cd to /tmp directory for LDAP Database Manipulation

LDAP slapd configuration: cd to /tmp directory for LDAP Database Manipulation

so, as we know at this point, if we do “ldapsearch -x > ldapdb” nothing will show up, like the original screenshot

one thing to notice from the original screenshot:

LDAP slapd configuration: one thing to notice from the original screenshot

the base is default, so if you specify what the default base is, you will be able to get the results you want

LDAP slapd configuration: the base is default, so if you specify what the default base is, you will be able to get the…

at this point we should vi our LDAP database and see if we have what we need in there

LDAP slapd configuration: at this point we should vi our LDAP database and see if we have what we need in there

cool, so this gives us what we should normally see

LDAP slapd configuration: cool, so this gives us what we should normally see

How do we fix this “long-term” so that we do not have to use the -b option every time? After all, that is alot of typing for a Linux Admin :)

edit the following file:

LDAP slapd configuration: edit the following file

Add the following line to the bottom of the config:

LDAP slapd configuration: Add the following line to the bottom of the config

now save, and restart slapd

LDAP slapd configuration: save, and restart slapd

from here do another dump of the LDAP database the normal way

LDAP slapd configuration: do another dump of the LDAP database the normal way

now vi the LDAP database to make sure all shows up correctly again

LDAP slapd configuration: vi the LDAP database to make sure all shows up correctly again

as you can see, it worked

LDAP slapd configuration: as you can see, it worked

LDAP Break/Fix has been completed.

Hosted Linux Servers at www.zwiegnet.com/go

Related guides: Reset LDAP Password Command Line · Configure osTicket for LDAP Authentication

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *