Solved

multiple domain controllers in jcifs

Posted on 2010-08-27
5
1,583 Views
Last Modified: 2013-12-02
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


0
Comment
Question by:tmprog
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
Sarcast earned 500 total points
ID: 33540010
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>
0
 

Author Comment

by:tmprog
ID: 33540284
How about if we don't have WINS srv. Will it work? Unfortunatelly, I have no possibility to check it at the moment, so I ask. :)
0
 
LVL 2

Expert Comment

by:Sarcast
ID: 33540351
Read the following article about name resolution within jcifs, it should get you on the right track:

http://home.ecat.mantech-wva.com/documentation/jcifs-0.7.3/docs/resolver.html
0
 

Author Closing Comment

by:tmprog
ID: 33540424
I see the point.
Thanks for help
0
 

Expert Comment

by:FaZoWy
ID: 38189515
This page is no longer avaliable. Could someone post a solution?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now