I have an interesting situation where we have the exact same application running in a "Development" environment and another in a "Testing" environment behaving differently when authenticating with AD via LDAP. The behavior is we want LDAP to throw an Authentication Exception if a user tries to authenticate with a disabled account. In Development this works exactly as expected and we get a error as defined below (data code = 533):
When we run this code in the Testing environment however it lets the disabled user login fine. Clearly something is configured differently with LDAP/AD in each environment right? If so what setting controls this behavior?