Solved

multiple domain controllers in jcifs

Posted on 2010-08-27
5
1,608 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Coldfusion update database with CFLOOP 5 60
How can I install php on a ngxin server on droplet 5 122
Firewall Speed Issue 6 66
.dwt files not viewable in browser - why? 2 75
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 …
A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

23 Experts available now in Live!

Get 1:1 Help Now