Question : multiple domain controllers in jcifs

Hi Experts

Can anyone explain how to configue multiple domain controllers in jcifs ?
I use jcifs.http.domainController and it does't allow to add multiple DC numbers. In my web there are 2 DC and, if jcifs authentication fails with first, it should be try to authenticate by second.
We don't have WINS server.

Thanks for all help


Answer : multiple domain controllers in jcifs

The preferred method is to specify "jcifs.smb.client.domain" (giving a
domain name) and "jcifs.netbios.wins" (which specifies the address of
a WINS server for name resolution). This allows jCIFS to load balance
between multiple domain controllers on the back end (it will find the
available domain controllers for the domain you specify). Note that
when your controllers are Windows 2003, you may need to specify a
username and password as mentioned above to set up the domain
controller connections.

for example::

<init-param>
<param-name>jcifs.smb.client.domain</param-name>
<param-value>MYDOMAIN</param-value>
</init-param>
<init-param>
<param-name>jcifs.smb.client.username</param-name>
<param-value>myusername</param-value>
</init-param>
<init-param>
<param-name>jcifs.smb.client.password</param-name>
<param-value>mypassword</param-value>
</init-param>
<init-param>
<param-name>jcifs.netbios.wins</param-name>
<param-value>10.10.2.20</param-value>
</init-param>
Random Solutions  
 
programming4us programming4us