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

Michael B Allen miallen at ioplex.com
Wed Sep 5 21:00:36 GMT 2007


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/


More information about the jcifs mailing list