Ldap

如何檢查 Sun Directory Server 版本?

  • January 19, 2012

如何在 Sun OS 5.10 中獲取 LDAP 伺服器 (Sun DS) 資訊

SunOS hostname 5.10 Generic_144488-06 sun4v sparc SUNW,T5240

具體來說

  1. 伺服器類型
  2. 伺服器版本
  3. 協議

使用以下命令:

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

產生:

ldap_search: Protocol error   
ldap_search: additional info: Bad search filter

通過使用以下查詢解決:

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

結果:

version: 1
dn:
vendorversion: Sun Java(TM) System Directory Server/5.2_Patch_4
objectClass: top
vendorname: Sun Microsystems, Inc

您是否嘗試過類似的方法:

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

來源

引用自:https://serverfault.com/questions/351356