I would like to programmatically differentiate between different types of services over LDAP, in order to adjust to their quirks.
Are there specific entities/records/fields that I can rely on to distinguish a Windows Server 2003 Active Directory server from a Windows Server 2008 AD server from a Windows Server 2012 AD?
Note:
In a question about using javax.naming with AD for a similar purpose, the query
ldapsearch -h HOST -b " " -s base objectclass=*
is proposed. It returns nothing for at least one AD server I tested.