[jcifs] The handle is invalid error calling to getSecurity

Michael B Allen ioplex at gmail.com
Thu Dec 17 08:38:13 MST 2009


On Thu, Dec 17, 2009 at 4:15 AM, Ori <oorrii at gmail.com> wrote:
>
> Hi,
>
> I'm trying to get the acl from a file using jcifs. This is my code:
>
> NtlmPasswordAuthentication ntlmPasswordAuthentication = new
> NtlmPasswordAuthentication("my domain", "user", "password");
> SmbFile file = new SmbFile( "smb://myserver/myshare/myfile"
> ,ntlmPasswordAuthentication)
>
> ACE[] acl = file.getSecurity(true); // throws "The handle is invalid."
> SmbException
>
> can someone help?

Hi Ori,

That should work. What is the full stack trace? What is the server? Is
it an old version of Samba maybe?

Mike

-- 
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/


More information about the jCIFS mailing list