Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to get LDAP Server (Sun DS) Information in Sun OS 5.10

SunOS hostname 5.10 Generic_144488-06 sun4v sparc SUNW,T5240


  1. Server Type
  2. Server Version
  3. Protocol

Using the command below:

ldapsearch -h hostname -p port-s base -b '' '(&)' vendorName vendorVersion


ldap_search: Protocol error   
ldap_search: additional info: Bad search filter
share|improve this question

Have you tried something like:

ldapsearch -LLL -h hostname -b "" -s base -D cn=admin,dc=yourdomain,dc=com -W "(objectclass=*)" vendorversion objectClass isGlobalCatalogReady vendorname


share|improve this answer
with some tweaks it worked, ldapsearch -h host -p port -b "" -s base -D "cn=mycn" "(objectclass=*)" vendorversion objectClass isGlobalCatalogReady vendorname – eradicus Jan 19 '12 at 5:30
up vote 0 down vote accepted

Solved by using the query below:

ldapsearch -h hostname -p port -b "" -s base -D "cn=somecn" "(objectclass=*)" vendorversion objectClass isGlobalCatalogReady vendorname


version: 1
vendorversion: Sun Java(TM) System Directory Server/5.2_Patch_4
objectClass: top
vendorname: Sun Microsystems, Inc
share|improve this answer
thanks to @benjarrell for the idea – eradicus Jan 19 '12 at 5:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.