[jcifs] problem with jCIFS and samba (security=share)

Michael B Allen mba2000 at ioplex.com
Fri Oct 1 18:50:42 GMT 2004


On Fri, 01 Oct 2004 13:26:17 +0200
<s-jacobi at web.de> wrote:

> > JCIFS does not permit the server to default to the GUEST account if
> > another username is specified. Either you must specify user "guest"
> > explicitly or create the target user on the Samba server with proper
> > credentials (ie. create the user "joker" with the proper credentials).
> >
> > Mike
> 
> of course i did (guest is undesirable).

Of course you did what? Create the user joker? I thought you said JCIFS
was getting logged in as guest?

> ---the code---
> UniAddress mydomaincontroller = UniAddress.getByName( "192.168.90.90" );
> NtlmPasswordAuthentication mycreds = new NtlmPasswordAuthentication( null,
> "joker", "Password" ); try {
> SmbSession.logon( mydomaincontoller, mycreds );
> // SUCCESS
> return true;
> } catch( Exception e ) {
> // FAILURE
> e.printStackTrace();
> }

Well it's been a very long time since I tested share level
authentication. Its very possible it's broken as nobody really uses
it. I'll take a look. Do you have a packet capture you can send me?

Mike

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


More information about the jcifs mailing list