Hi Team,
From my Java Program i am in need to find the LDAP Server version.
i am able to get supportedLDAPVersion using below search query,
LDAPSearchResults ldapSearchResults = ldapConn.search("", LDAPConnection.SCOPE_BASE, "(objectclass=*)", new String[] {"supportedLDAPVersion"}, false);
No results found, when i try to use vendorVersion and vendorName (like that queried like below)
ldapSearchResults = ldapConn.search("", LDAPConnection.SCOPE_BASE, "(objectclass=*)", new String[] {"vendorVersion"}, false)
is there any approach that can follow, please let me know.
i am need to get info as below,
root@docker_container:/etc/ldap/slapd.d# ldapsearch -VV ldapsearch: @(#) $OpenLDAP: ldapsearch (Jul 30 2019 16:24:19) $ Debian OpenLDAP Maintainers < pkg-openldap-devel@lists.alioth.debian.org> * (LDAP library: OpenLDAP *20448*)* root@docker_container:/etc/ldap/slapd.d#
Thank you. -- Thanks & Regards,
Vijay Kumar *+91-94944 44009*
--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
openldap-technical@openldap.org