[jcifs] JCIFS http filter problem with DC on Win 2003

Michael B Allen mba2000 at ioplex.com
Tue Apr 25 16:37:36 GMT 2006


On Tue, 25 Apr 2006 09:57:24 +0200
"Inge Solvoll" <inge.tapestry at gmail.com> wrote:

> I think I've made a breakthrough on this issue now.
> 
> The username sent to the server from the browser is the excact same string
> that the user logged into the domain with. It seems that JCIFS does not
> recognize the domain login pattern " user at domain.com", it expects the login
> pattern to be "DOMAIN/user". If the user logs in with the first pattern, the
> following NtlmHttpFilter code fails:
> 
> index = user.indexOf ('\\');
>                 if (index == -1) index = user.indexOf('/');
>                 String domain = (index != -1) ? user.substring(0, index) :
>                         defaultDomain;
>                 user = (index != -1) ? user.substring(index + 1) : user;
> 
> I'll have to rewrite a little for my filter, to pick the username email
> style if user string contains @.

Interesting. So people can log into their workstation with
user at domain.com? Never seen that. What do they put into the domain
field? Nothing?

If you get it working both ways pls send a patch. That would expidite
things a little.

Thanks,
Mike


More information about the jcifs mailing list