[jcifs] how to tell if CIFS/SAMBA is running on a server?

Anuj Agrawal agrawalanuj at yahoo.com
Thu Sep 6 01:05:01 GMT 2007


Mike - Never mind.  I do see the additional log messages now.
I'll deploy this so that i can see log messages when it doesn't work.
Thanks.
Anuj.

----- Original Message ----
From: Anuj Agrawal <agrawalanuj at yahoo.com>
To: Michael B Allen <miallen at ioplex.com>
Cc: jcifs at lists.samba.org
Sent: Wednesday, September 5, 2007 9:01:26 PM
Subject: Re: [jcifs] how to tell if CIFS/SAMBA is running on a server?


Mike - thanks for the response.  I turned on logging by setting jcifs.util.loglevel to 3 (in web.xml).  But all it appeared to do (after restarting the server) was to log all the JCIFS PROPERTIES in my console.  There was no additional logging as i hit the site.  I did not see any references to SMB_COM_SESSION_SETUP_ANDX.  

What should i be looking for?

Thanks.
Anuj.

----- Original Message ----
From: Michael B Allen <miallen at ioplex.com>
To: Anuj Agrawal <agrawalanuj at yahoo.com>
Cc: jcifs at lists.samba.org
Sent: Wednesday, September 5, 2007 5:00:36 PM
Subject: Re: [jcifs] how to tell if CIFS/SAMBA is running on a server?


On Wed, 5 Sep 2007 12:54:30 -0700 (PDT)
Anuj Agrawal <agrawalanuj at yahoo.com> wrote:

> Hi all - i've searched for this answer in the archives, but don't seem to be using the proper query string, so here goes.
> 
> I've used the jCIFS library running in a Tomcat webapp (on a Win2k box).  I had it configured to auth against a particular IP address (using jcifs.smb.client.domain parameter).  It was working just fine, but they shut down that box during a change to the domain everyone was authenticating against.
> 
> Now i have to use a different domain controller to auth against, but i'm getting reports of "flaky" behavior.  For the most part it works, but for some people who are offshore, it periodically pops up the login box repeatedly, and finally allows them in.
> 
> After reading countless postings, i started guessing that it may be because the "old" box i was using to auth against had CIFS/SAMBA running on it, but the new "set" of servers (i believe it is load-balanced) have some servers that have CIFS/SAMBA running and some don't.  Again this is just a guess.  So i asked my system administrators to verify if CIFS/SAMBA is running (i believe those are Windows servers), but they don't seem to know where to look.
> 
> Any suggestions on what to look for to determine if CIFS/SAMBA is running?  This appears to be a pre-requisite for using jCIFS.

Hi Anuj,

Increase logging. You'll see the server type listed in the SMB_COM_SESSION_SETUP_ANDX message.

Mike

-- 
Michael B Allen
PHP Active Directory Kerberos SSO
http://www.ioplex.com/


       
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/


       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting 


More information about the jcifs mailing list