?
Solved

multiple domain controllers in jcifs

Posted on 2010-08-27
5
Medium Priority
?
1,724 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
Sarcast earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
What You Need to Know when Searching for a Webhost Provider
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

801 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