[jcifs] Re: Can we configure a backup domain controller in jCIFS

Marius Scurtescu marius at sxip.com
Tue Apr 3 21:55:23 GMT 2007


On 3-Apr-07, at 11:51 AM, Michael B Allen wrote:

> On Tue, 3 Apr 2007 10:46:06 -0700
> Marius Scurtescu <marius at sxip.com> wrote:
>
>> On 30-Mar-07, at 5:00 AM, jcifs-request at lists.samba.org wrote:
>>
>>> From: kannan_Jayaprakash <kannan_jayaprakash at infosys.com>
>>> Subject: [jcifs] Can we configure a backup domain controller in  
>>> jCIFS
>>>
>>> Hi all,
>>>
>>> We are using jCIFS for SSO in our web application. I'm in look out
>>> for some
>>> information regarding jCIFS.
>>> firstly,
>>> while configuring my web.xml with the ip for domain controller, i
>>> would like
>>> to know if we could have a back up IP where the system could look
>>> up if my
>>> primary server(for authentication) is down.
>>
>> We needed the exact same functionality and we ended up writing our
>> own internal patch for this purpose.
>>
>> Instead of entering only one host for the domain controller you can
>> enter a comma separated list of hosts. The filter will try to connect
>> to them one by one and use the first that is accessible. You can also
>> set a timeout and a port, both used for probing.
>>
>> We would be more than happy to contribute this small patch, is there
>> a formal way to do it?
>
> Just do diff -Nuar new old and send the file to the list. I'll put it
> in the patches directory.

Here is the patch, but I did it like "diff -Nuar old new" (let me  
know if you really wanted "new old"). The patch is against version  
1.2.13.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: backup-domain-controllers-1.2.13.patch
Type: application/octet-stream
Size: 2723 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20070403/e3912be1/backup-domain-controllers-1.2.13.obj
-------------- next part --------------

Marius



More information about the jcifs mailing list