Help me to understand in spring boot how to know when LDAP user is disabled

Job ID: 36023101

Budget: $10 – $30 USD

I have a spring boot code, which uses windows active directory to store the user data.

I get the user data using spring-security-ldap-5.6.1.jar:
org.springframework.security.ldap.authentication.LdapAuthenticationProvider::doAuthentication()
it returns an object of type org.springframework.ldap.core.DirContextOperations, but i cant understand how to identify disabled user with it.

I also tried org.springframework.security.core.Authentication Principal,
org.springframework.security.core.userdetails.UserDetails.isEnabled() always returns true, for a reason i dont understand.

I need someone to tell me how toidentify when the user is disabled, see attached image.
Related categories: Active Directory Java Spring Spring Boot