Check realm.domain==null first to short-circuit the check for canDoNativeAuth.
This ensures that when domain is set, ActiveDirectoryUnixAuthenticationProvider will be used without touching native code.
Should also save some class loading during startup.
Merge branch 'master' of github.com:jenkinsci/active-directory-plugin