How to view all the steps involved in ldapsearch operation?

Solution 1:

ldapsearch -d 9 od ldapsearch -d 999

man ldapsearch ... -d debuglevel Set the LDAP debugging level to debuglevel. ldapsearch must be compiled with LDAP_DEBUG defined for this option to have any effect. ...