[jcifs] how to tell if CIFS/SAMBA is running on a server?
Michael B Allen
miallen at ioplex.com
Thu Sep 6 01:03:56 GMT 2007
Use one of the simple examples like ListFiles.java and try a higher log
level - 4 or 5 should do it.
On Wed, 5 Sep 2007 18:01:26 -0700 (PDT)
Anuj Agrawal <agrawalanuj at yahoo.com> wrote:
> 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?
> ----- 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.
> Michael B Allen
> PHP Active Directory Kerberos SSO
> Pinpoint customers who are looking for what you sell.
Michael B Allen
PHP Active Directory Kerberos SSO
More information about the jcifs