all groups > asp.net security > february 2004
Filter by week: 1 2 3 4
Using Integrated Security for Accessing SQL on Remote Server
Posted by eRic at 2/28/2004 4:31:05 PM
Hello,
I am currently trying to use integrated security to access the SQL database for the ASP.NET application (deployed on an intranet)
I am following this article
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskaccessingsqlserverwithexplicitcredentials.as
So... more >>
Active Directory
Posted by Galore at 2/27/2004 9:01:51 PM
Hello,
I need to get all the AD information from a user that access a intranet
ASP.NET page.Does anyone can tell me how to do it? (the user can't put its
login and password on a text box and validate it, I've got to get it by
code)
Thanks
... more >>
Access denied while trying QI on a DCOM object
Posted by Craig Lee at 2/27/2004 4:34:13 PM
We have a Web Service written in C# that accesses an ATL service via DCOM.
This all works great when both are on the same machine.
When I move to a two server scenario, I get an Access Denied error.
What is interesting is that I am able to get the Class Factory and then
create an instance of... more >>
Enum All Roles in a Principal?
Posted by localhost at 2/27/2004 11:52:31 AM
I know how to do ..IsInRole() to test if a user is in a particular
role.
How do I enumerate all of the roles currently attached to my principal
instance? WindowsPrincipal or GenericPrincipal.
Thanks.
... more >>
httpcontext
Posted by Mithun at 2/27/2004 2:06:05 AM
How to maintain user authentication/authorization if session times out?... more >>
Who am I impersonating?
Posted by garbage400 NO[at]SPAM hotmail.com at 2/26/2004 4:07:02 PM
Is there a way I can get the user of the identity I will be
impersonating to get network resources?
I know WindowsIdentity.GetCurrent().Name for the person coming into
the ASP.NET app but I want to do some testing of different
combinations of impersonating based on Anon, Windows Auth, and
imp... more >>
DPAPI in a Load Balanced Environment
Posted by rifferte NO[at]SPAM mac.com at 2/26/2004 1:15:43 PM
Has anyone used the DPAPI to store database encryption keys and other
data in a load balanced environment? Would multiple web servers be
able to decrypt data if they were originally encrypted by another web
server?
My app works fine on a single box - but I am concerned about putting
this into... more >>
Parent paths
Posted by A.M at 2/26/2004 10:36:20 AM
Hi,
The following web server security checklist:
http://msdn.microsoft.com/library/en-us/dnnetsec/html/CL_SecWebs.asp?frame=true&_r=1
mentions "Parent paths" setting is disabled.
Where can i disable "Parent paths"?
Thanks,
Ali
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Access denied
Posted by srinivasasarma NO[at]SPAM bharatmail.com at 2/26/2004 5:08:11 AM
hi,
i'm trying to create an instance of outlook application from my ASP.NET(VB.NET)
application.I added the Microsoft Outlook Library 10.0
It's giving the error 'Access Denied'
I created '{machinename}\ASPNET user and gave the write permissions to the user.
Can anyone help me...
Thanks in ... more >>
Reverse Encryption in .NET
Posted by jameschou2000 NO[at]SPAM yahoo.com at 2/25/2004 4:24:48 PM
Hi,
I saw several posts asking for reverse encryption (encrypt with
private key instead of public key) in .NET. I am having the same
question and wonder anybody has a good solution to it.
Basically, my client application generates a key pair and exports the
public key to server. The client ... more >>
Is it possible to screen scrape a secure site (HTTPS).....
Posted by Ollie at 2/25/2004 10:08:44 AM
I know you can screen scrape a website using the System.Net.HttpWebResponse
& System.Net.HttpWebRequest classes.
But how do you screen scrape a secured website (https) that takes a username
& password, I guess what I am asking where does the username & password
go and where do you store any re... more >>
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
Posted by mt at 2/25/2004 8:46:08 AM
I'm getting a Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' error. I'm running IIS 6 on 2003 Server
The error occurs when my asp.net page trys to execute a DTS package stored on another server (same domain). I'm using a sql login - not windows authentication - to connect sql server. Why ... more >>
web.config ignored
Posted by Brian Webb at 2/25/2004 12:09:00 AM
My web.config settings are being ignored.
I have check IIS and the application is presiding in my root directory.
There are no other web.config files on the box.
When I move the application to another server, everything works fine.
Some evidence of the web.config being ignored includes:
The p... more >>
PKCS#12 File to Sign Assemblies?
Posted by localhost at 2/24/2004 5:11:52 PM
I have an individual PKCS#12 file. Can I use it to sign assemblies
instead of using "sn -k" ?
Thanks.... more >>
Attribute Expression Must be a Constant - Problem
Posted by localhost at 2/24/2004 5:05:23 PM
I decorated my assembly with the stuff below, but the compiler
complains "An attribute argument must be a constant expression, typeof
expression or array creation expression".
I want my assembly to obey CAS and only read and write to its own
application directory as well as %temp%. Any sugg... more >>
Radius Authentication...
Posted by Bob Erwin at 2/24/2004 3:44:49 PM
Hey,
I have searched and searched and searched for direction with this subject.
Basically, I would like to use our local Windows 20003 IAS Server to
authenticate my web clients. However, I can't, for the life of me, find
anyway to do this or any direction of what I need in order to do this.
... more >>
Access Denied
Posted by mt at 2/24/2004 3:11:11 PM
Hello
Here is my setup
IIS 6 on a Server 2003 machin
..NET framework 1.
I'm trying to copy files from clients to my 2003 server using a HtmlInputFile control.
The code
Tr
'upload the file from the client to the server folde
UploadFileInput.PostedFile.SaveA... more >>
asp.net webservice & ssl
Posted by Andy at 2/24/2004 3:01:11 PM
I've established an SSL (with selfSSL) certificate for my IIS ver. 5.
an
i want my webservice client to connect to webservice through ss
(i've done all the things considered in MSDN - http://msdn.microsoft.com/library/en-us/dnnetsec/html/SecNetHT14.asp
bu
all it says is an error - "Cannot estab... more >>
Problems after changing Identity Application Pool Settings (sn-yycbk.dll)
Posted by Howard Hoffman at 2/24/2004 1:34:27 PM
Applies to: W2K3 Server / IIS6 / Default Isolation Mode / ASP.NET 1.1
We wish to run our ASPNET worker process in a domain account so as to use
RDBMS trusted connections.
We have created a domain account for this purpose.
We have added this domain account to the W2K3 Server
machine IIS_WPG g... more >>
403 Forbidden errors w/ windows authentication
Posted by John at 2/24/2004 9:26:08 AM
Hello
I am developing a intranet application in an all Windows environment, but I'm running into a authentication snag. I use Windows Integrated Security on the web server so that I can identify who the user is. I do this with these lines.
Dim objContext As System.Web.HttpContext ... more >>
WEB.CONFIG ISSUE
Posted by Arvind P Rangan at 2/23/2004 7:33:48 PM
Hi ALL
I have all my root files under Forms Type Authentication mode and i have
another folder where in i need no permission or a direct access to that
folder.
So i did make some changes in WEb.Config.
I added the following at the end of WEB.Config.
<location path="ALL"> -- ALL is the folder... more >>
FormsAuthentication.GetRedirectUrl() returns only first parameter
Posted by Brian Adkins at 2/23/2004 6:07:20 PM
It appears that FormsAuthentication.GetRedirectUrl() only returns the first
parameter for the original target URL. For example, if the original target
URL is:
/MyPage.aspx?a=b&c=d
and the user is redirected to the login page, a call to
FormsAuthentication.GetRedirectUrl() in the login page... more >>
How can I tell waht permissions an assembly requires?
Posted by Earth Worm Jim at 2/23/2004 2:18:18 PM
Is there a tool that tells me what permissions my assembly requires?
I have add [assembly: PermissionSet(SecurityAction.RequestOptional,
Unrestricted=false)] to deny all permissions I just want to now grant one I
require?
Cheers
Earth Worm Jim
... more >>
Tips and Suggetions for Information Security
Posted by Rugved at 2/22/2004 8:31:05 PM
Hello
I have just finished my bachelors and now I am going to pursue for my masters degree in Information security field. I would like to have suggestion and tips that how should I start preparing my self for this field. I am a Web Application Developer so I will be going for web security or relat... more >>
Security issues relating to submitting href links and text:
Posted by Chipmunk at 2/22/2004 6:44:02 PM
I am currently developing a website (ASP.NET) which allows users to
submit a web form containing a href link in one field and descriptive text
in another field. The records will stored to varchar columns in a SQL Server
2000 database and hosted by a 3rd party ISP. The list of links will then ... more >>
Passing security credentials to ASP from .net
Posted by Raj at 2/22/2004 4:36:06 PM
Hi All
Here's my situation. I have a ASP page which requires windows authentication. The page works fine when I access it from IE and I am able to login succesfully.
Now I am writing some .NET code to access the page. I pass in some data for the form. I always get a 401 error. I am looking for som... more >>
Unable to start debugging on the web server. Access is denied.
Posted by BY at 2/22/2004 2:16:05 AM
When user try to debug an Asp Web application, He got error "Unable to start debugging on the web server. Access is denied.
The IIS server installed locally on the pc with Wondows XP. Administrator that try to debug on that same pc does not have any problems, Only simple user that try to debug reci... more >>
Security across several apps
Posted by jib at 2/21/2004 9:29:55 PM
Hi,
For some of you this must be elementary, sorry for being boring. I have
several ASP.NET apps that I want to secure. The way I am going about it, is
by having all apps set for Forms authentication. The login.aspx I have new
users redirect to is part of a Admin module (yet another ASP.NET ... more >>
80004005 error
Posted by tguillor NO[at]SPAM ems.jsc.nasa.gov at 2/20/2004 8:32:23 AM
I initially posted this in a different ng. I was advised that this ng
was perhaps more attuned to my question. The following is my original
post:
*************
VB.NET 2003 on XP Pro
I get the following error when I attempt to run my project. I've
Googled
and looked on MSKB, with no luck.... more >>
ASPNET users
Posted by Zen at 2/19/2004 4:12:56 PM
Hi everyone,
I have the following security issue. I have a ASP.NET application running on
a Server (SERVER_A - XP pro). A certain page needs to show a picture located
on another Server (SERVER_B). Normaly the IIS connects using the local
ASPNET user account, but SERVER_B don't know this accoun... more >>
ASP.Net Security Problem
Posted by Sanjay Malhotra at 2/19/2004 6:21:05 AM
Hi
I have a problem with permissions with an ASP.Net Application and IIS and SharePoint on Windows 2000 SP4 with .Net Framework 1.1.4322. The SharePoint 2001 SP 2a Portal Server is setup for Internet Access(Extranet Solution)
I have a very simple piece of code that uploads a documents to a SPS 2... more >>
FormsAuthentication Signout should redirect to frameless page!
Posted by Manimaran M at 2/18/2004 9:40:52 PM
Hi,
I'm using FormsAuthentication in an web application that uses Frames.
When the user clicks on "logout" button, I have the following code:
FormsAuthentication.SignOut();
The challenge here is that, SignOut redirects to the logon page specified in
the <forms> element in Web.Co... more >>
SSL and Forms Authentication
Posted by Scott at 2/18/2004 5:45:54 PM
Hi,
I've seen this problem posted a few times around the 'net with no answer.
Hopefully someone here can help.
We have our website configured to use Forms Authentication. We want to
secure the Login page ONLY using SSL. When a user goes to the site he is
redirected to the Login page for a... more >>
right to files on mapped drives throught IIS and ASP.NET
Posted by chris at 2/18/2004 4:14:58 PM
Hello,
On a local website but i want to access data on a remote drive (a mapped
drive). The data are Foxpro files on a directeory of a mapped drive.
I have a problem with security ( no tabel can be opened error 52 in foxpro )
I search the web for a solution.
Server 1 = Windows 2000 (Web... more >>
creating custom HttpContext.Current.User.Identity
Posted by schwartz NO[at]SPAM cableone.net at 2/18/2004 2:42:27 PM
I've started getting into using forms authentication for asp.net apps
with c#. From what i understand so far (limited) I like the way
things work! I've got an application working right now where an email
address and password is checked from a database and I can check the
authenticated user's e... more >>
Win2003 and NT AUTHORITY\NetworkService
Posted by Raghu at 2/18/2004 2:40:08 PM
We have an ASP.NET application on Win2003 box. This application runs under
default user "NT AUTHORITY\NetworkService". We need to give right
permissions for this user on a folder to write a file to the disk. But we
were not able to do so.
Specifically when we right click on a given folder in w... more >>
[REPOST] Problem in Windows based Authentication
Posted by Abhishek Srivastava at 2/18/2004 10:28:36 AM
Hello All,
I use windows based authentication for my ASP.NET web app. I have
disabled anonymous access of my web application too from the IIS console.
From my own machine, the webapp works perfectly.
But when someone else tries to access it, they get error message
"You do not have per... more >>
allowDefinition='MachineToApplication'
Posted by b_naick NO[at]SPAM yahoo.ca at 2/17/2004 8:36:56 PM
My web application has the following structure
RootFolder
- file1.aspx
- file2.aspx
- web.config
- admin_folder
- protectedFile1.aspx
- web.config
RootFolder is setup as a Virtual Directory and has script only
permissions.
The web.config file under root is standard ... more >>
Separated DLLs for user controls
Posted by A.M at 2/17/2004 3:59:33 PM
Hi,
By default VS.NET generates just one DLL contains all code behinds and
userconrols.
Is it possible to have VS.NET partitione them in their own assemblies for
granular security?
Thanks,
Ali
... more >>
Patterns And Practices Security Checklists
Posted by A.M at 2/17/2004 2:55:48 PM
Hi,
In Architecture and Design Review Security Checklist at following link:
http://msdn.microsoft.com/library/en-us/dnnetsec/html/CL_ArchDes.asp?frame=true&_r=1
I don't underestand following two items:
1) Session state is protected from unauthorized access.
2) Session identifiers are no... more >>
Login/Logout Problem
Posted by smita at 2/17/2004 12:50:16 PM
Hi,
I have a small problem...Please go through it and share your views on
it.
I am using an xml file to authenticate my users. Also for each user i am
maintaining a attribute named "status" which holds the logged in information
i.e. if the user has logged in then the staus will be "Log... more >>
ASP.NET Exception on hosted server
Posted by Steve at 2/16/2004 8:31:10 PM
When I run my ASP.NET on my computer it works fine, even in medium trust which is what mt webhost uses. However on the webhost it generates this exceptio
SecurityException: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutr... more >>
Putting a hole into forms authentication?
Posted by harrismax NO[at]SPAM nospam.com at 2/16/2004 3:01:08 PM
My application uses forms authentication. On the sign-in page is a form (with takes a username, a password, and has a button [SignUp]) that allows for the creation of new user accounts
I'm trying to get it so that when the SignUp (not SignIn) button is clicked, a user account is created in the dat... more >>
Help for ActiveX
Posted by Luca Vanuzzo at 2/16/2004 1:38:00 PM
I have created an ActiveX control for use on a web application for an
intranet. Do I still have to pay for a Certification Authority to sign my
ActiveX control for download to IE , when it is only for use on an intranet.
I want to eliminate the constant message box saying the ActiveX control is
... more >>
Login Security
Posted by Merlin at 2/16/2004 9:37:46 AM
Hey group,
I would like to be able to write a ASP page and on it have a link to another
ASP page. I would like to be able to have a Access Database or similar with
Username and Password and be able to allow users to enter there detail it to
look at the database to check then allow them to open... more >>
Form Authentication
Posted by slawek xxxxx at 2/16/2004 3:41:27 AM
Hello everyone,
I have found a problem with form authentication method that I can't
solve. The problem is:
I want to use a form authentication in my application, so i set :
<authentication mode="Forms">
,and
<forms name="LoginForm" loginUrl="SM_LoginPage.aspx" protection="All">
but ... more >>
Securing a directory
Posted by Simon Harvey at 2/15/2004 7:28:21 PM
Hi everyone,
I just read an article that said that when you use a web.config file to
secure a directory, all it can do is secure the asp.net resources in that
directory - not any non .net resources.
For ecample, image files, html and asp files would not be secured.
I didnt actually realise ... more >>
Error with cmdQuestion.ExecuteReader(out dr);
Posted by Patrick.O.Ige at 2/14/2004 4:17:26 PM
I have a code PASTED below.Its validate(login) against a database SQL
SERVER.
But i have a problem with the LINE:- "cmdQuestion.ExecuteReader(out dr);"
below
its says ERROR :-
"The best overloaded method match for
'System.Data.SqlClient.SqlCommand.ExecuteReader(System.Data.CommandBehavior... more >>
members-only access to all files in a directory
Posted by Jos at 2/14/2004 10:31:29 AM
I want to create a "member zone" with restricted access to registered
members only.
I already succeeded to restrict access to ASPX files in a particular
directory using ASP.NET security.
I use Forms authentication and the <location> tag in web.config.
Is it possible with ASP.NET to apply th... more >>
Passing Credential to SOAP via a .NET remoted object
Posted by Steve Drake at 2/13/2004 4:18:38 PM
All,
I have a WEBPAGE that needs to pass the current credentials to a .NET
remoted object so this can pass the credentials to a SOAP WEBSERVICE (All
written in C#)
But I cannot see how I pass credentials to the remoted object, any ideas?
If there was no remote layer then I could just do :... more >>
|