tags:

views:

323

answers:

0

Hi,

We are using NTLM authentication using JCIFS in our web application. In the web.xml file, we are specifying the domain controller server name, like this:

<!-- NTLM code -->
<init-param>
    <param-name>jcifs.http.domainController</param-name>
    <param-value>SERVERNAME</param-value>
</init-param>

my question here is:

  1. Is there any way to get the SERVERNAME from JNDI, instead of hard coding it in web.xml?
  2. How do I specify a backup domain controller name in case the first one fails?

Thanks in advance.