Impala or Hue is not in my focus.
But it seems you have a configuration issue.. It seems you are trying to configure HUE with LDAP Directory ( Microsoft AD in your case)..
Some notes ->
https://docs.cloudera.com/documentation/enterprise/latest/topics/hue_sec_ldap_auth.html*Check your configuration file. Probably you have a wrong setting for AD.. especially in the ldap search-related configuration lines.