Groups | Blog | Home
all groups > iis security > february 2004 >

iis security : Upload Files onto a Remote Server


Lara
2/5/2004 4:41:27 PM
When uploading a file onto a remote server on our
intranet, it errors as "permission denied". (We are
using a component called, ABCUpload.) It only works
when "Allow IIS to control password" is not checked.
That means I can't use IUSR. But I need to know who
logged in. I could use "Basic Authentication", but that
means all users have to log-in every single time.

Is there a way to use "Basic Authentication" and yet
enabling single sign-on for the users?

Any suggestion, direction, support helps. :)
David Wang [Msft]
2/6/2004 1:36:45 AM
[quoted text, click to view]

Sure. Just enable Basic authentication on IIS and most browsers should
automagically do it.

Single-Sign-On is largely a client-side phenomenon with server-side
cooperation. With properly configured web browsers, any of the
authentications supported by IIS and the browser require at MOST one user
sign-on. By default, IE and Netscape will allow single-sign-on using Basic
authentication.

The way a browser enables Single-Sign-On with Basic authentication is to
send the base64 encoding of username:password on every request to the
server. This essentially "pre-authenticates" every one of those requests
(recall that the HTTP protocol used by web browsers is STATELESS while
Single-Sign-On is all about maintain some type of user session in the form
of STATE... and over a stateless protocol like HTTP).

Now, since Basic authentication is essential clear-text, browsers do not
like to freely "pre-authenticate" when crossing websites so security
reasons.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
When uploading a file onto a remote server on our
intranet, it errors as "permission denied". (We are
using a component called, ABCUpload.) It only works
when "Allow IIS to control password" is not checked.
That means I can't use IUSR. But I need to know who
logged in. I could use "Basic Authentication", but that
means all users have to log-in every single time.

Is there a way to use "Basic Authentication" and yet
enabling single sign-on for the users?

Any suggestion, direction, support helps. :)
Thanks!!

Desmond Lam
2/6/2004 3:16:24 PM
By default, when in IIS you clear the Enable Automatic Password
Synchronization or Allow IIS to control password check boxes, you are
required to enter the password manually and anonymous authentication will
fail until you do.

If I am not wrong, even when you did not enable "Allow IIS to control
password" checkbox, you can still use IUSR account. You need to manually
enter a new password for the IUSR account and it should work for anonymous
access.

You may refer to the following KB articles for more information on anonymous
acccess:

Password Synchronization/Allow IIS to Control Password May Cause Problems
http://support.microsoft.com/?id=216828

Must Enter Password Manually After You Set Password Synchronization
http://support.microsoft.com/?id=259353

Hope it helps,
Desmond

[quoted text, click to view]

Lara
2/6/2004 4:14:26 PM
Thank you, David and Desmond.

Actually, I am using OpenWiki (web bulletin board kind of
tool) with an uploading component, called ABCUpload. So,
under "OpenWiki" virtual directory, I have another one
called "Attachment".

I have no problem going into OpenWiki, but when I try
uploading, it fails with a permission error.

The only time it works is when I set the security
at "OpenWiki" virtual directory level with any user with
no password, not allowing IIS to control password, and
enable Basic Authentication. BUT, not without asking to
login to OpenWiki page everytime.

Do you have any advice or suggestion??

Lara
P.S. Thanks for your help!


[quoted text, click to view]
David Wang [Msft]
2/7/2004 4:12:59 PM
I do not have any advice specific to "OpenWiki" nor "ABCUpload", but it is
quite irrelevant since they are merely code that must obey the same
rules/reasonings in the following URL:
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/deploy/confeat/RemStorg.asp

This is what you must decide:
Are all users going to write to the remote server as one single user or
individual user. That is, do you want "Pass-Thru" authentication where the
remote user, authenticated, writes as him/her self to the remote server
using the same identity, or does everyone get mapped to one UNCUser identity
which alone has the ability to write to the remote server.

How to configure is described in the aforementioned URL.

Based on what you are saying, you seem to want anyone to be able to use
ABCUpload to upload to a remote server, but without authenticating. This
suggests that you do NOT want "Pass-Thru" authentication. You should be
able to accomplish this by turning off all authentication, enabling only
Anonymous authentication, make sure the anonymous username/password is
synchronized in the IIS Manager UI, the local SAM database, and the remote
server's SAM database. Finally, give this user write permissions on the
Remote Server's NTFS filesystem as well as full permissions on the UNC
Share.

This maps all anonymous requests to be executed by this synchronized
identity, which can write to the remote server's NTFS filesystem via the UNC
share, completely authenticated without any external dialog boxes. How you
latch onto this with a 3rd party component -- that's for you to figure out,
using their documentation...

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
Thank you, David and Desmond.

Actually, I am using OpenWiki (web bulletin board kind of
tool) with an uploading component, called ABCUpload. So,
under "OpenWiki" virtual directory, I have another one
called "Attachment".

I have no problem going into OpenWiki, but when I try
uploading, it fails with a permission error.

The only time it works is when I set the security
at "OpenWiki" virtual directory level with any user with
no password, not allowing IIS to control password, and
enable Basic Authentication. BUT, not without asking to
login to OpenWiki page everytime.

Do you have any advice or suggestion??

Lara
P.S. Thanks for your help!


[quoted text, click to view]

Lara
2/20/2004 9:06:55 AM
Thank you so much, David!!! I will struggle a bit
longer. :)



[quoted text, click to view]
AddThis Social Bookmark Button