Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Access is denied., -1073741790

Help
2008-10-29
2013-04-16
  • hi,

    i got a bunch of webdisk installations up and running fine - thanks btw. for such a great tool!

    but now i'm stuck:

    Tomcat 5.5.27, JDK 1.6.0_07-b06, Webdisk 0.44, running on Windows 2003 server R2 in an actice directory environment.
    on trying to connect, EVERY machine which is in the AD gives the error
    -> Access denied. smb://mfi-datev/ (Access is denied., -1073741790)
    when trying to connect to a machine which is NOT in the AD, i can access fine with credentials of a local user on that machine.
    so it seems, that the AD policies are kind of too restrictive for "letting the SMB/CIFS client side of webdisk in".
    since i have it in anther AD running (on Server 2003 R2), i know it CAN work....

    any ideas, what AD/group/security policies parameters may conflict with the login process?

    i tried to update the jCIFS library to 1.3.0, because i thought NTLMv2 may be the problem: there were lots of changes in the 1.2.15 made by TB, which i tried to migrate to 1.3.0... i was able to compile the modified jCIFS library 1.3.0 and then the webdisk sources. this was a bunch of work, leading straight to a tomcat error :-(
    ---------------
    java.lang.AbstractMethodError: jcifs.dcerpc.msrpc.MsrpcShareEnum$MsrpcShareInfo1.comment()Ljava/lang/String;
        jcifs.smb.SmbFile.doShareEnum(SmbFile.java:1789)
        jcifs.smb.SmbFile.doEnum(SmbFile.java:1701)
        jcifs.smb.SmbFile.listFiles(SmbFile.java:1680)
        jcifs.smb.SmbFile.listFiles(SmbFile.java:1613)
        webdisk.Presentation.showTree(Presentation.java:660)
        webdisk.Presentation.showContent(Presentation.java:301)
        webdisk.Controller.doGet(Controller.java:279)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    --------------
    this error comes up, when trying to connect with te RIGHT user/pass!
    when giving wrong credentials, it works as expected with:
    jCIFS: Logon failure: unknown user name or bad password., -1073741715

    and now i'm frustrated and stuck.

    any ideas are really welcome...

    thanks in advance

    martin

     
    • Hello,

      looks like a problem with merging the code. In SmbShareInfo.java, you should have:
          public String comment() {
              return remark;
          }

      bye
      Thomas

       
    • bingo!!

      thank you very much, thomas.

      i added

          public long lastAccessTime() {
              return 0L;
          }
          public String comment() {
          return remark;
          }

      to SmbShareInfo.java and it seems to run as expected...

      are there any plans to "officially" include jCIFS 1.3.0?

       
      • Hello,

        no, haven't made any plans, yet.

        bye
        Thomas