List Info

Thread: Re: -=(ASP-Support-Group)=- Permissions Work Around?




Re: -=(ASP-Support-Group)=- Permissions Work Around?
country flaguser name
Canada
2007-10-15 11:52:25


Thanks a lot! That works great! Just have to remember to change the password in the code when I change my network password.

Soren



Tony Cheetham <TonyEnkidu.cx>
Sent by: ASP-Support-Groupyahoogroups.com

10/13/2007 08:11 AM
Please respond to
ASP-Support-Groupyahoogroups.com

To
ASP-Support-Groupyahoogroups.com
cc
Subject
Re: -=(ASP-Support-Group)=- Permissions Work Around?





When you use XMLHTTP it uses blank credentials and you have to force it to
use a login, like so..

xmlHTTP.open "GET&quot;, "http://infopage.cummins.com/CSE/Tools/Minutes.asp,
False, "Username", Password&quot;

As your using a domain based login, you will have to hard code some
credentials in there.

TonyHome
----- Original Message -----
From: "Soren" <soren.j.winslowcummins.com>
To: <ASP-Support-Groupyahoogroups.com>
Sent: Friday, October 12, 2007 5:21 PM
Subject: -=(ASP-Support-Group)=- Permissions Work Around?



I have a section of our intranet that I have removed anonymous access
so I can grab the visitors network username. I have done this because
some visitors have access to certain sections and forms. Plus so I
can keep track of who has submitted what without having them log in
(people here are tired of having to log into this or that)

On the main section of our intranet I have a page that shows the
latest additions and updates. That information comes from a database
that stores the page content, title and last modification of that
page.

The data in that database is processed by using a combination of
reading the page XMLHTTP to get the current page content and
FileSystemObject to get the last mod date of that page. This process
is triggered by either a form I submit after updating articles on our
intranet or an included process when other data is updated. For
example; when someone submits something to the company news section,
part of my submit process will use XMLHTTP to read the content of
that page (so it will grab what a visitor will see) and (after
stripping the HTML) will save that in a database and use now() as the
last mod date. I also use that DB table for searching.

So, anyway, I needed to explain all that to get to this.
On the sections of our intranet that I have anonymous access turned
off the XMLHTTP does not work because ISUR (which I am guessing
xmlhttp uses) is not an authenticated user and I actually get a 401
xmlHTTP.Status. Unfortunately, if I enable anonymous access (even
with the authenticated access boxes checked) I am unable to grab
Auth_User.

Is there a way I can have both my xmlhttp to work and also be able to
grab Request.ServerVariables("AUTH_USER&quot;)?

A screenshot of my permissions can be seen at:
http://www.cumminsnorthwest.com/MiscImg/IISAccess.jpg

Here is the code I am using for my xmlhttp:
Set xmlHTTP = CreateObject("MSXML2.ServerXMLHTTP.3.0")
xmlHTTP.open "GET&quot;, "http://infopage.cummins.com/CSE/Tools/Minutes.asp
&quot;, false
xmlHTTP.send()
CurrentPage = xmlHTTP.ResponseText
CurrentStatus = xmlHTTP.Status
CurrentReadiness = xmlHTTP.readyState
If CurrentStatus = 200 AND CurrentReadiness = 4 Then
  'Function that grabs title from the page
  TheTitle = GetTitle(CurrentPage)
Else
  Response.Write "Page Unavailable"
End If
Set xmlHTTP = Nothing
Response.Write "<br>"; & TheTitle & "<br>";



Group homepage is here:
http://groups.yahoo.com/group/ASP-Support-Group

To unsubscribe from this group, send an email to:
    ASP-Support-Group-unsubscribeyahoogroups.com and cross your fingers
because Yahoo is 5h1te.

Yahoo! Groups Links






Group homepage is here:
http://groups.yahoo.com/group/ASP-Support-Group

To unsubscribe from this group, send an email to:
    ASP-Support-Group-unsubscribeyahoogroups.com and cross your fingers because Yahoo is 5h1te.

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/ASP-Support-Group/

&lt;*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/ASP-Support-Group/join
   (Yahoo! ID required)

<*&gt; To change settings via email:
   mailto:ASP-Support-Group-digestyahoogroups.com
   mailto:ASP-Support-Group-fullfeaturedyahoogroups.com

<*> To unsubscribe from this group, send an email to:
   ASP-Support-Group-unsubscribeyahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )