AD plugin has two vastly different implementations. One is based on ADSI (let's call this "ADSI mode") and the other is based on JNDI LDAP calls (let's call this "LDAP mode".) ADSI mode is only available when master is running on Windows.
When ADSI mode is possible, the plugin offers a different set of configuration options. This UI has a several problem.
- UI doesn't make it obvious that setting the domain name results in switching to the LDAP mode.
- When you implicitly choose LDAP mode by specifying a custom domain name, you should get all the configuration options of the LDAP mode, but you don't. See JENKINS-24960 and JENKINS-22727 for how this impacts users.