Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

multiple domain controllers in jcifs

Posted on 2010-08-27
5
Medium Priority
?
1,768 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

Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

Question has a verified solution.

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

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
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 …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

604 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