ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Sliding into WebDAV
Subject:   WebDav & NTLM
Date:   2005-08-01 07:01:16
From:   bwandrack
Response to: WebDav & NTLM


Can't help with #2, but I am currently using NTLM and WebDav. Here is some sample code that should help:

NTCredentials creds = new NTCredentials(userName, password, hostAdd, "" );
HostConfiguration hostConfig = new HostConfiguration();
hostConfig.setHost(hostAdd); //Not url, just ip address or fully qualified DN
HttpURL host = new HttpURL("http://" + hostUrl);
WebdavResource res = new WebdavResource(host, (Credentials)creds, WebdavResource.DEFAULT, DepthSupport.DEPTH_1);

Hope this helps.

Bill Wandrack

1 to 3 of 3
1 to 3 of 3