| Article: |
Sliding into WebDAV | |
| Subject: | WebDav & NTLM | |
| Date: | 2005-08-01 07:01:16 | |
| From: | bwandrack | |
|
Response to: WebDav & NTLM
|
||
|
Yensen,
|
||
Showing messages 1 through 3 of 3.
-
WebDav & NTLM
2007-02-12 09:30:59 PabloMosquera [View]
-
WebDav & NTLM
2007-02-12 09:27:25 PabloMosquera [View]
Hi, Im having the same problem with the same httpException. I´m trying to connect to a IIS server and I use the same code. Please tell me how you solved the problem
I have these exceptions
org.apache.commons.httpclient.HttpException
at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3467)
at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3423)
...
Thanks
-
WebDav & NTLM
2005-09-19 03:34:29 dennis_surendar [View]
Bill,
Tried with the code given above:
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);
However, I see an authentication-warning message saying "Already tried to authenticate with null authentication realm at <exchange server name>, but still receiving: HTTP/1.1 401 Access Denied". Proceeding furhter with the method "WebdavResource.list ();" gives a NullPointerException.
Am I doing something wrong? Do I need to setup my Tomcat to redirect the authentication to MS Exchange server? Please help.
Thanks in advance.
- Dennis.



org.apache.commons.httpclient.HttpException
at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3467)
at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3423)