D
David Thielen
I have a test http url that allows a connection from any domain user.
I am using the following code to test access to it:
XmlReaderSettings readerSettings = new XmlReaderSettings();
readerSettings.ProhibitDtd = false;
readerSettings.ValidationType = ValidationType.DTD;
XmlUrlResolver resolver = new XmlUrlResolver();
resolver.Credentials = new NetworkCredential("dave", "bogus");
readerSettings.XmlResolver = resolver;
XmlReader xmlReader = XmlReader.Create(filename, readerSettings);
while (xmlReader.Read())
// nothing - just make sure can read all
;
But the above is a bad password. Shouldn't this fail? I am testing this case
because we can use forms login and in that case the user must enter their
username/password - we don't want to allow the credentials of the ASP.NET app
to allow access.
Am I missing something?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
I am using the following code to test access to it:
XmlReaderSettings readerSettings = new XmlReaderSettings();
readerSettings.ProhibitDtd = false;
readerSettings.ValidationType = ValidationType.DTD;
XmlUrlResolver resolver = new XmlUrlResolver();
resolver.Credentials = new NetworkCredential("dave", "bogus");
readerSettings.XmlResolver = resolver;
XmlReader xmlReader = XmlReader.Create(filename, readerSettings);
while (xmlReader.Read())
// nothing - just make sure can read all
;
But the above is a bad password. Shouldn't this fail? I am testing this case
because we can use forms login and in that case the user must enter their
username/password - we don't want to allow the credentials of the ASP.NET app
to allow access.
Am I missing something?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm