sense to put diffrent types of ldap-messages (they all live in a single type LDAPMessage on the evil C side) in appropriate records since the type of a ldap-message keeps changing in an unpredictable way. Use the API call ldap-message-type instead.
(ldap-message=?): ditto (ldap-entry=?): ditto