[jcifs] Re: ACLs - SmbException: Incorrect function

Michael B Allen miallen at ioplex.com
Mon Jun 25 15:01:43 GMT 2007

Hey Jake,

That looks like the server doesn't understand DCERPC. Like Novell
maybe. But I would have to see a trace to confirm.


On Mon, 25 Jun 2007 09:43:17 -0400
Jake Goulding <goulding at vivisimo.com> wrote:

> Trying to retrieve some ACLs for a file, I get the following Exception. Does this ring a bell for anyone? I'm working on getting more information about the particular setup being used, but I figured I could check here first.
> com.vivisimo.connector.SMBConnector$SMBException: Could not get the ACL
> 	at com.vivisimo.connector.SMBConnector.setACL(SMBConnector.java:315)
> 	at com.vivisimo.connector.SMBConnector.processFile(SMBConnector.java:293)
> 	at com.vivisimo.connector.SMBConnector.processNode(SMBConnector.java:102)
> 	at com.vivisimo.connector.ConnectorWorker.run(ConnectorWorker.java:502)
> Caused by: jcifs.smb.SmbException: Incorrect function.
> 	at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:514)
> 	at jcifs.smb.SmbTransport.send(SmbTransport.java:591)
> 	at jcifs.smb.SmbSession.send(SmbSession.java:239)
> 	at jcifs.smb.SmbTree.send(SmbTree.java:109)
> 	at jcifs.smb.SmbFile.send(SmbFile.java:693)
> 	at
> jcifs.smb.TransactNamedPipeOutputStream.write(TransactNamedPipeOutputStream.java:67)
> 	at jcifs.dcerpc.DcerpcPipeHandle.doSendFragment(DcerpcPipeHandle.java:50)
> 	at jcifs.dcerpc.DcerpcHandle.sendrecv(DcerpcHandle.java:162)
> 	at jcifs.dcerpc.DcerpcHandle.sendrecv(DcerpcHandle.java:129)
> 	at jcifs.dcerpc.msrpc.LsaPolicyHandle.<init>(LsaPolicyHandle.java:32)
> 	at jcifs.smb.SID.resolveSids0(SID.java:119)
> 	at jcifs.smb.SID.resolveSids(SID.java:162)
> 	at jcifs.smb.SmbFile.processAces(SmbFile.java:2626)
> 	at jcifs.smb.SmbFile.getSecurity(SmbFile.java:2660)
> 	at com.vivisimo.connector.SMBConnector.setACL(SMBConnector.java:313)
> 	... 3 more

Michael B Allen
PHP Active Directory Kerberos SSO

More information about the jcifs mailing list