[jcifs] SmbAuthException while calling list() on a SmbFile("smb://").

Michael B Allen mba2000 at ioplex.com
Tue Sep 7 00:31:57 GMT 2004


On Mon, 6 Sep 2004 23:56:21 +0200
"Michael P. Jung" <suriver at gmail.com> wrote:

> After looking at the code fragment which throws the exception I don't
> think that my setup causes all this anymore...
> 
> Line 191-193 in jcifs/smb/SmbSession.java:
> if( response.isLoggedInAsGuest ) {
>     throw new SmbAuthException( NtStatus.NT_STATUS_LOGON_FAILURE );
> }
> 
> So what shall happen if I _want_ to log in as guest? I just changed it a
> bit...
> 
> if( !request.auth.getUsername().toUpperCase().equals("GUEST") &&
> response.isLoggedInAsGuest ) {
>     throw new SmbAuthException( NtStatus.NT_STATUS_LOGON_FAILURE );
> }

Ahh, crud. Yeah, I just changed this. It's a jcifs problem. I'll have
to release a fix.

-- 
Greedo shoots first? Not in my Star Wars.


More information about the jcifs mailing list