Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

SunOS hostname 5.10 Generic_144488-06 sun4v sparc SUNW,T5240

Specifically

  1. Server Type
  2. Server Version
  3. Protocol

Using the command below:

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

Produces:

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

2 Answers

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

Source

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 –  Joset Jan 19 '12 at 5:30
add comment
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

Result:

version: 1
dn:
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 –  Joset Jan 19 '12 at 5:31
add comment

Your Answer

 
discard

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.