473,414 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

ASP Cross server rights

HI Guys.

I hope you can help me out!

I'm writting a small app for my Intranet that allows me to see basic
information aount user accounts. Included in that information is disk quota
data such as QuotaLimit, QuotaUsed and such.

If the quota info is from a disk local to my IIS server, such as it's drive
C. Everything works fine. However, this is where the fun starts!

If I specify a remote disk (such as \\fileserver\d$), I almost always get an
access denied error. (returned from the "quotaObject.Initialize" statement)
The code works perfectly if I connect to IIS from IE running on the IIS
server.

I do not use "anonymous" access. The users connect using their windows
credentials. I connect as a member of the Administrators group. On a whim,
I gave the IWAM_server account admin previleges, and still no luck.

Since the page loads perfectly when I connect from the IIS server, this
indicates that the problem is not that the IIS server can't talk properly to
the file server. Rather it seems to indicate that the user account IIS uses
to retrieve the data is different if I'm using the console instead of a
client.

Note, I get a failure even if I use the file server as my client. Both
sverers are member of the same domain.

Any thoughts?

-Pauli
Jul 22 '05 #1
5 2500
"Paul J. Landry" wrote in message
news:23**********************************@microsof t.com...
I hope you can help me out!
:
: I'm writting a small app for my Intranet that allows me to see basic
: information aount user accounts. Included in that information is disk
quota
: data such as QuotaLimit, QuotaUsed and such.
:
: If the quota info is from a disk local to my IIS server, such as it's
drive
: C. Everything works fine. However, this is where the fun starts!
:
: If I specify a remote disk (such as \\fileserver\d$), I almost always get
an
: access denied error. (returned from the "quotaObject.Initialize"
statement)
: The code works perfectly if I connect to IIS from IE running on the IIS
: server.
:
: I do not use "anonymous" access. The users connect using their windows
: credentials. I connect as a member of the Administrators group. On a
whim,
: I gave the IWAM_server account admin previleges, and still no luck.
:
: Since the page loads perfectly when I connect from the IIS server, this
: indicates that the problem is not that the IIS server can't talk properly
to
: the file server. Rather it seems to indicate that the user account IIS
uses
: to retrieve the data is different if I'm using the console instead of a
: client.
:
: Note, I get a failure even if I use the file server as my client. Both
: sverers are member of the same domain.
:
: Any thoughts?

Just to confirm, these are both member servers or are they a mix or both
DCs?
How are you verifying the account being denied access?

With a remote UNC connection to an administrative share, three things are
required:
The account must have remote server admin privs or domain admin privs.
Domain Admin privs must have access to the path, meaning share AND NTFS
permissions.
3rd party participation should be removed. i.e. no script blocking,
personal firewall, IPSec, etc.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #2
Hi Roland, thanks for the input.

Both servers are DCs of a single domain (in this case, although I've tried
with member servers, without any more success)

I'm connecting with a domain admin account. I'm using NTLM/NTFS permissions
on the actual web site. IIS seems to recognise the integrated Windows
authentication properly. Response.servervariable(remoteuser) returns the
accurate username.

However, I don't know what account the IIS server is attempting to use to
connect to the other server. I would hope it would use the user account used
to connect to IIS, since it uses those previleges for local tasks. Either
that or IWAM_server. Since I gave them both domain admin previleges, I
guesss not.

And again, it works perfectly if I use a browser on the IIS server, so I
don't understand why it would behave differently when I use any other
computer...

Thoughts?

-Paul Landry

"Roland Hall" wrote:

Just to confirm, these are both member servers or are they a mix or both
DCs?
How are you verifying the account being denied access?

With a remote UNC connection to an administrative share, three things are
required:
The account must have remote server admin privs or domain admin privs.
Domain Admin privs must have access to the path, meaning share AND NTFS
permissions.
3rd party participation should be removed. i.e. no script blocking,
personal firewall, IPSec, etc.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp

Jul 22 '05 #3
"Paul J. Landry" wrote in message
news:79**********************************@microsof t.com...
: Hi Roland, thanks for the input.
:
: Both servers are DCs of a single domain (in this case, although I've tried
: with member servers, without any more success)
:
: I'm connecting with a domain admin account. I'm using NTLM/NTFS
permissions
: on the actual web site. IIS seems to recognise the integrated Windows
: authentication properly. Response.servervariable(remoteuser) returns the
: accurate username.
:
: However, I don't know what account the IIS server is attempting to use to
: connect to the other server. I would hope it would use the user account
used
: to connect to IIS, since it uses those previleges for local tasks. Either
: that or IWAM_server. Since I gave them both domain admin previleges, I
: guesss not.
:
: And again, it works perfectly if I use a browser on the IIS server, so I
: don't understand why it would behave differently when I use any other
: computer...

Hi Paul...

Let me explain my setup and tell you what I did to get this to work.

My setup:

XP client
W2K DC : FS1

The client is running IIS. I created a virtual directory called 'remote' to
a UNC path to \\xp\fp. I set the virtual path to use an account with domain
admin rights. FP is a share that points to c:\fp on XP.

I put a script in \\xp\fp called info.asp.

This is the source:

<%@ Language="VBScript" %>
<%
strComputer = "xp"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colDiskQuotas = objWMIService.ExecQuery _
("Select * from Win32_DiskQuota")
response.write "<pre>"
For each objQuota in colDiskQuotas
response.write "Disk Space Used: " & vbTab & objQuota.DiskSpaceUsed &
vbCrLf
response.write "Limit: " & vbTab & objQuota.Limit & vbCrLf
response.write "Quota Volume: " & vbTab & objQuota.QuotaVolume & vbCrLf
response.write "Status: " & vbTab & objQuota.Status & vbCrLf
response.write "User: " & vbTab & objQuota.User & vbCrLf
response.write "Warning Limit: " & vbTab & objQuota.WarningLimit &
vbCrLf
Next
response.write "</pre>"
%>

Using IE I put in the address http://localhost/remote/info.asp

Note: My client is in a different domain than my DC so I have to use Basic
Authentication. I was prompted for credentials. Using Integrated, you
should not be prompted as you can add rights to the NTFS permissions of
\\xp\fp for the domain admin user. I set permissions (NTFS) to just
xp\administrator.

Here are my results:
Disk Space Used: 0
Limit: 18446744073709551615
Quota Volume: Win32_LogicalDisk.DeviceID="C:"
Status: 0
User: Win32_Account.Domain="XP",Name="Administrators"
Warning Limit: 18446744073709551615
Disk Space Used: 0
Limit: 18446744073709551615
Quota Volume: Win32_LogicalDisk.DeviceID="E:"
Status: 0
User: Win32_Account.Domain="XP",Name="Administrators"
Warning Limit: 18446744073709551615
I was not able to run this on FS1 as Win32_DiskQuota is not supported on
W2K. I believe it is just XP and W2K3 compatible.-- Roland Hall/* This
information is distributed in the hope that it will be useful, but without
any warranty; without even the implied warranty of merchantability or
fitness for a particular purpose. */Technet Script Center -
http://www.microsoft.com/technet/scriptcenter/WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.aspMSDN Library -
http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #4

Hi Roland.

According to MS, "Win32_DiskQuota" is not compatible with 2000. Only 2k3
and XP.

Which is why I'm using the "Microsoft.DiskQuota.1" object.

Thanks.
Thoughts?
-Pauli
Jul 22 '05 #5
"Paul J. Landry" wrote in message
news:EF**********************************@microsof t.com...
: According to MS, "Win32_DiskQuota" is not compatible with 2000. Only 2k3
: and XP.
:
: Which is why I'm using the "Microsoft.DiskQuota.1" object.

Did you try Win32_DiskQuota.1 with the code I displayed? It should work the
same.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Timothy V | last post by:
Hi, People often say that the .NET Framework is cross-platform. Does this mean linux and macOS? Thank you in advance, Timothy.
2
by: Peter Bär | last post by:
A Question to the C#/.Net Gods of this forum: are there performance penalties when i compile (C#, FW1.1, ASP.NET, Studio2003) a central baseclass in a different assembly than all the derived...
7
by: Scott M. | last post by:
How can I disable the cross-site scripting check for one particular page of a site?
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
1
by: WT | last post by:
Hello, I have an asp.net 1.1 application that runs an asp.net 2.0 page in an iframe. I need to save the contained app before saving the main one when the save button is clicked. For this I...
1
by: torsten.reiners | last post by:
Hi, We try to implement a "web-application" where we have to access a general web-site -- loaded into a frame -- from another frame using JavaScript. We know that there are security issues...
5
by: Spam Catcher | last post by:
Hello Everyone, I need to implement single sign on across serveral applications. Some applications are under my control while others are under the control of 3rd parties. Can anyone suggest a...
6
by: Bart Van der Donck | last post by:
Hello, I'm presenting my new library 'AJAX Cross Domain' - a javascript extension that allows to perform cross-domain AJAX requests. http://www.ajax-cross-domain.com/ Any comments or...
6
by: ampo | last post by:
Hello. Can anyone help with cross-domain problem? I have HTML page from server1 that send xmlHTTPRequest to server2. How can I do it? Thanks.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.