[jcifs] NtlmHttpFilter does not use multiple Domain
Controllers.bug in getChallengeForDomain() ?
Michael B Allen
mba2000 at ioplex.com
Wed Feb 16 00:28:25 GMT 2005
Ahh, crud. I understand. No, I don't think there is a way to fix this
without modifying the code. I think the fix is to eliminate that entry
condition with:
107 starting_index = dc_list_index == dc_list_range ? 0 : dc_list_index;
108 do {
Can you try this? I can build you a jar file if you like.
Thanks,
Mike
RMathe said:
> but if the first DC goes down after using the second is not accessed and I
> get
> an exception too
>
> there seems to be a bug in SmbSession.getChallengeForDomain() handling the
> variables starting_index, dc_list_index and dc_list_range
>
> After an successful request dc_list_index is increased but if the next
> request
> with dc_list_index=1 and dc_list_range=1 is processed the second DC is not
> accessed because of a wrong logic:
>
> starting_index = dc_list_index (set to 1)
> if(dc_list_index == dc_list_range) dc_list_index = 0
> incr_dc_list_range() (sets dc_list_range=2)
> dc_list_index++ (set to 1)
> while(dc_list_index != starting_index) (returns false)
>
> Any suggestions to resolve the problem without changing the Library?
More information about the jcifs
mailing list