[jcifs] Identifying Windows version with JCIFS?

Michael B Allen ioplex at gmail.com
Wed Aug 20 19:41:34 GMT 2008


On Wed, Aug 20, 2008 at 2:18 PM, Marasim <marasim at gmail.com> wrote:
> Hi All:
>
> Is there a way to identify the Windows version of the host we are connecting to
> using JCIFS?

Actually the SmbComSessionSetupAndXResponse.natvieOs field should be
pretty good for this. You'll have to add a method like
SmbFile.getNativeOS() that reaches down into tree.session.natvieOs.
And you'll need to make sessionSetup copy that value somewhere you can
get to it.

Mike

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


More information about the jcifs mailing list