How to dump LDAP Schema
This article applies to the Linux and Mac versions of PaperCut. UNIX command-line experience is required.
PaperCut support may ask for an LDAP schema data to diagnose complex LDAP issues. The following commands can be used to produce a file with LDAP information:
If the base DN is known:
ldapsearch -x -h localhost -b "<base dn>" | gzip > ldapsearch-data.gz
With an empty base DN:
ldapsearch -x -h localhost -b "" | gzip > ldapsearch-data.gz
If authentication is required:
ldapsearch -x -h localhost -D "<admin dn>" -w "<admin-password>" -b "<base dn>" | gzip > ldapsearch-data.gz
You should be able to obtain your AdminDN and BaseDN from your
slapd.conf, this is often located in
/etc/openldap. On Mac OS X, this is called
Open the file in your favourite text editor and look for the suffix and rootdn.
You should know your password!
If you are running Windows and do not have access to a Mac OS X or Linux installation to use ldapsearch, please contact PaperCut Technical Support who has a Windows binary available for your use. You will need to reference “Internal Ticket: 3675”
keywords: ldap schema dump, ldap support, ldapsearch.exe