How to set NT domain?
You have to set NT domain in the hue configuration file. Open this file and search for the [[ldap]] section. And then set the NT domain as follows:
Is it necessary to set NT domain while using ldap username pattern?
No, if you have set ldap_username_pattern then it is not necessary.