[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: How to fetch LDAP Server version using Java





--On Thursday, January 30, 2020 2:34 PM +0530 Vijay Kumar <pasumarthivijaykumar@gmail.com> wrote:

In the future, do not cross post to multiple lists. You were already told specifically to address your questions to openldap-technical@openldap.org.

supportedLDAPVersion tracks the LDAP version (LDAP version 3), it does not track the underlying version of OpenLDAP.

However, if you enable the monitor backend (See the man page for slapd-monitor(5)), the OpenLDAP version is contained in the monitoredInfo attribute:

ldapsearch -x -LLL -H ldap:/// -s base -b cn=monitor monitoredInfo
dn: cn=Monitor
monitoredInfo: OpenLDAP: slapd 2.4.48 (Jan 29 2020 19:43:07)

This of course requires that your program have permission to read from that database.

--Quanah

--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.com>