Groups | Blog | Home


Archived Months
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net security > december 2004

Filter by week: 1 2 3 4 5

FormsAuthentication Redirection NOT WORKING!!
Posted by studen77 at 12/31/2004 8:55:01 PM
Thanks in advance to anyone who can help:) Ok- I've got two different ASP.NET projects communication with each other; one has its WEB.CONFIG file restricting anonymous users with the following entry: <authentication mode="Forms"> <forms loginUrl="OtherASPNETprojectname/login.aspx" name=...more >>


ASP.Net Impersonation
Posted by Mark Miller at 12/30/2004 10:35:05 AM
I am trying to understand Impersonation in the ASP.Net context. Here's what I DO understand: -Using Windows Authentication with impersonation="true" means that the aspnet_wp will try and access the resource with the authenticated user's credentials (token). If access is denied I get an IIS ac...more >>

Cross Domain Auto Login
Posted by grimgroups NO[at]SPAM gmail.com at 12/30/2004 9:28:20 AM
I have multiple asp.net websites living in different domains. The websites (pages, code, etc) are all identical. The databases driving the websites are different. This is not a web farm. I use Forms Authentication as the authentication method against custom users and passwords stored in the...more >>

Forms Authentication to protect a cgi application
Posted by Stephen Davies at 12/30/2004 2:11:01 AM
I have enabled forms authentication on an IIS 6 W2k3 server to protect access to the application files until authenticated. The actual application apart from the login/logout files is .cgi based so I have added a “Wildcard Application Map” entry site properties home directory tab Co...more >>

Forms Authentication to protect .cgi application problem
Posted by Stephen Davies at 12/30/2004 2:05:02 AM
I have enabled forms authentication on an IIS 6 W2k3 server to protect access to the application files until authenticated. The actual application apart from the login/logout files is .cgi based so I have added a “Wildcard Application Map” entry site properties home directory tab Co...more >>

Output folder changed
Posted by Peter Afonin at 12/29/2004 8:47:25 PM
Hello, When I build an ASP.NET application, for some weird reason Visual Studio.Net started to put my DLLs into the VSWebCache folder under Documents and Settings instead of usual bin folder under the project directory. When I go to the project's properties and try to change the path to the ...more >>

Redirect not working
Posted by Ldraw at 12/29/2004 10:27:01 AM
I have looked at all the Redirect questions on this site without finding a resoultion to my redirect problem. I am using sample code to verify a user and password from a login page but although the verification is successful and I can see that the return url is where I need to go I am contin...more >>

Role Based Forms Auth with Active Directory
Posted by Patrick Olurotimi Ige at 12/28/2004 8:00:09 PM
As anybody succesfully implemented a role/groups based forms authentication against the Active Directory? Thx Patrick *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>



Modify AD Active directory based on user name only.
Posted by Shaker at 12/28/2004 2:09:04 PM
Hi, Is there a way to update any user info (properties) on the AD, through an ASP.net code with c#. With only filtering on any user name, without password. Please provide a clear code to do that. Simply I want a dropdown combo, filled by all user names on AD and for each chsen user upd...more >>

Forms Authentication - Reporting Services Web Service integration
Posted by Paul Keegstra at 12/28/2004 8:01:05 AM
I am working on an asp.net application which requires forms authentication as the method for authenticating the web application using the underlying Active Directory as the user store. I have created my Forms Authentication process using the methods described in some MSDN samples and that...more >>

file.move to unc causes error
Posted by Michael McLaughlin at 12/28/2004 7:37:01 AM
Hello I also posted this message under dotnet.security. What I have is a web application that shows the user their files in a protected location. The user can then select a file and move it to another server over unc. The user is logged in via windows basic authentication with their domain ...more >>

FormsAuthentication.Encrypt - algorithm
Posted by Gawel at 12/27/2004 11:51:06 PM
Hajo, I have a few questions about above method. 1. AFAIK it is symatric encryption, what kind of algorithm(name) is used in this method? 2. Where is key stored? thanks in advance for info Gawel...more >>

encrypt .aspx file content
Posted by Loane Sharp at 12/26/2004 2:25:16 AM
Hi there Is it possible, as an added (fairly paranoid) security measure, to encrypt the content of, say, an .aspx file on the server? Best regards Loane ...more >>

How to authorize download?
Posted by lenyado at 12/25/2004 10:23:03 AM
I am planning a website which reqires this feature: it allows registered users to upload and/or download files (like *.doc, *.ppt etc.) but not everyone can download every files. some files are restricted to certain users only. that means only certain users can download certain files. but if ...more >>

Authentication in ADAM
Posted by Lorenzo Soncini at 12/24/2004 11:58:27 AM
Hi, I can use for security authentication the information about user and group who I have stored in ADAM (Active Directory Application Mode) from my ASP.NET application? Thanks and sorry for my english..... Merry christmas! Lorenzo Soncini ...more >>

Write access to web.config
Posted by Asim at 12/23/2004 12:33:03 PM
What are the security risks to grant ASP.NET user write access to web.config? I am working on a project in which I am required to update web.config at the runtime, basically modifying access to different directories. Any suggestion will be greatly appreciated. Thanks...more >>

Help me! How I could make user in active directory
Posted by Sara Rafiee via .NET 247 at 12/22/2004 4:03:25 PM
hello can anyone help me making user in active directory , I wrote a code, but it could't work, could anyone correct it. thanks in advance. Sub example() 'Put user code to initialize the page here 'Try Dim AD As DirectoryEntry = _ New DirectoryEntry("LDAP://m...more >>

Bypassing a session ID?
Posted by mostro at 12/22/2004 9:27:39 AM
Hi All, Example: A webpage exists that allows you to fill out a form and click submit. The page next page displays the information found from your search criteria. The form includes information like Fname, Lname, Address and Zip. I want to programmatically fill out the form and submit the i...more >>

Accessing ActiveDirectory through LDAP with .NET
Posted by Tim Mavers at 12/21/2004 5:16:52 PM
I am trying to determine the best way I can authenticate against an ActiveDirectory using LDAP with .NET. I need to use LDAP because I need to authenticate across the Internet. Right now I have code that authenticates (e.g. I pass username/password to it) via NTLM but the problem is I am ...more >>

Cross Site Scripting & Custom Error Pages
Posted by Neil at 12/21/2004 2:27:05 AM
Hi, I have been investigating CSS vulnerabilites within my application and have a question. If I added malicious script tags to the Url these are automatically removed from all pages of my application and the user is redirected to my custom error page. This is all taken care of by the .Net ...more >>

Securing and Accessing XML Files
Posted by crjunk at 12/20/2004 6:35:03 AM
I’m not very experienced with security on a web server, so what I’m asking might be really stupid. I have an application that is creating XML files in the C:\temp folder on our DMZ. I want to create an aspx page that will pull a user’s XML file from the C:\temp folder and populate ...more >>

Get UserGroup of Active Directory to control the security
Posted by Shaker at 12/19/2004 12:01:01 AM
Hi, I have an ASP.Net Intranet App with C#. I don't need to ask users about by User and PWD since they are already logged in. This is acheived through "<deny users="?" />" tag. no problem with it. My concern now is to determine the the user group where the user is belonging to. to contr...more >>

AD password policy in Forms auth against AD
Posted by Nils Magnus Englund at 12/17/2004 11:47:53 AM
Hey! I've successfully followed Microsofts example on how to use Forms authentication with Active Directory (from the "Building Secure ASP.NET Applications" How To-section). However, I would very much like to use AD's password policy features, specifically: 1. I want the user to get a wa...more >>

DirectorySearcher - SearchResult - User Groups
Posted by George Durzi at 12/16/2004 8:04:59 AM
Hi, I'm having trouble fetching the AD groups a user belongs to after authenticating them against Active Directory. My code is based on the How To for using Forms Authentication to authenticate against AD (http://support.microsoft.com/default.aspx?scid=kb;en-us;326340) LDAP ConnectString: ...more >>

The process aspnet_wp is a surviver !
Posted by news.iq.ca at 12/16/2004 1:28:13 AM
Hi. I am trying to use a treeview - after a few attempts, it works, but only up to a point - my exercise was to dynamically create nodes in the treeview. I read about binding the treeview to a XML file. Okay, so I decided to complicate my exercise and to create the XML file on the fly. I am us...more >>

Authorization Manager, ASP.NET, possible memory Leak
Posted by John at 12/15/2004 1:42:38 PM
We are using Authorization Manager in an ASP.NET application. We are using Microsoft.Interop.Security.AzRoles. We appear to have a memory leak when calling the method InitializeClientContextFromName. In a simulation, when we call this method 1000 times, the LSASS process consumes more and more me...more >>

XP user authentication
Posted by Avi at 12/15/2004 11:09:01 AM
Folks, Given the following function signature: bool AutheticateUser(string uid, string pwd); Can anyone tell me which .Net class.function API can I use to return true/false if the password passes the XP authentication for a particular machine / AD for the uid? Many thanks, Avi avi_f...more >>

System.DirectoryServices - The server is not operational
Posted by George Durzi at 12/15/2004 10:45:44 AM
I have an asp.net web application written in c# that uses Forms Authentication to authenticate against our Active Directory. I based the authentication code on the How To found on MSDN (http://support.microsoft.com/default.aspx?scid=kb;en-us;326340) The applications works just fine on our p...more >>

Integrated Authentication, Impersonation, and Web Services
Posted by Web Developer at 12/15/2004 10:19:02 AM
Environment: OS: Windows 2003 IIS: 6 ..Net Framework: 1.1 Authentication Scheme: Windows Integrated Authentication Impersonation: Enabled Error Message: Exception Type: System.Net.WebException Status: ProtocolError Response: System.Net.HttpWebResponse Message: The request failed with HTT...more >>

Forms Authentication and Custom errors
Posted by trinitypete at 12/15/2004 8:03:07 AM
Hi all, I've searched this problem and sort of found the resolution but cant get it to work. Web site using forms authentication, just switched <customErrors defaultRedirect="public/Error.aspx" mode="On" /> got in to the problem where system redirects to error page but ...more >>

asp.net how to login to AD from a webform
Posted by Carlos at 12/14/2004 11:44:14 AM
I have a webserver 2003 and a AD server 2003, I need to create an intranet app and I want the users login to the Webserver using their AD credentials so I do not have to create a users table. Does anyone knows how to do it or has a sample ? Thanks in advance ...more >>

asp.net how to login to AD from a webform
Posted by Carlos at 12/14/2004 11:43:44 AM
I have a webserver 2003 and a AD server 2003, I need to create an intranet app and I want the users login to the Webserver using their AD credentials so I do not have to create a users table. Does anyone knows how to do it or has a sample ? Thanks in advance ...more >>

asp.net how to login to AD from a webform
Posted by Carlos at 12/14/2004 11:43:27 AM
I have a webserver 2003 and a AD server 2003, I need to create an intranet app and I want the users login to the Webserver using their AD credentials so I do not have to create a users table. Does anyone knows how to do it or has a sample ? Thanks in advance ...more >>

"Requested registry access is not allowed" and Web Service call
Posted by Clint at 12/13/2004 8:05:17 AM
Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that does nothing but return "true" (this will obviously change once the program's fully built to actually do something, but for testing, it works). T...more >>

Unhandled Exception: System.TypeInitializationException:
Posted by abu at 12/13/2004 7:02:05 AM
On Running a managed exe i get the following error : Unhandled Exception: System.TypeInitializationException: The type initializer for 'WSRMGUI.Sample.WS RMGUIHandler' threw an exception. ---> System.IO.FileLoadException: Failed to grant required minimum permissions to assembly 'WindowsUIAuto...more >>

2 domain names, 1 IP, one SSL cert
Posted by Andy at 12/12/2004 8:23:02 PM
I have a web server with 2 domain names, one IP and a single SSL cert. Domain name one has the SSL cert, but domain name two doesn't. domain name one is the actual domain name of the server, domain name two is more of an alias to one site on the server. Therefore, a url on domain name one...more >>

Page.User.Identity.Name vs. WindowsIdentity.GetCurrent().Name
Posted by junglesnake NO[at]SPAM gmail.com at 12/11/2004 12:39:50 PM
What is the difference between Page.User.Identity.Name and WindowsIdentity.GetCurrent().Name In what scenarios would I use one or the other?...more >>

Impersonation when performing IO operation using File.Copy
Posted by Bunty at 12/10/2004 12:31:03 PM
Hello, I am trying to implement impersonation for the copying file from one remote directory to the other remote drive on the same server in ASP.Net page. Impersonation seems to be working fine. It seems to perform the impersonation but when it tries to copy the file then it raises the excep...more >>

Require multiple role membership?
Posted by Arthur Dent at 12/10/2004 9:15:21 AM
Is there any way in the web.config "allow roles" authorization section, to AND the roles together? Eg. in my app, i have roles Customer, Employee, and Admininstrator. Now, there could be Admin employees, and Admin Customers, each with access to different sections. Is there a way to specifiy ...more >>

Looking for security training
Posted by David Godwin at 12/10/2004 9:00:51 AM
I am looking for a legitimate training course in the continental US that can provide in-depth, technical instruction on how to protect a website running the latest ASP.NET. I *don't* want a management-level class where I'm told "don't allow X to happen". Unless you actually know how a hack i...more >>

Mixing Windows and Forms Authentication
Posted by Fabio Gouw at 12/10/2004 3:31:03 AM
I was looking a way to have the Windows and Forms Authentication on the same site, and I found a Paul Wilson's article on MSDN. I've downloaded the code, and I'm trying to make it work. But I got some problems..., it works well with Windows Authentication, but when it comes about Forms, it ...more >>

ASP.NET App with Unmanaged Code - HELP!
Posted by Ted at 12/10/2004 12:00:55 AM
I think the following is a security configuration issue, can someone help? I've been stumped on this for a couple of days now and I'm feeling the heat at work. -- I'm using a 3rd party ActiveX control which has it's own constructor and two very simple methods (which ultimately sends out ...more >>

NEWBIE-"RedirectFromLoginPage"
Posted by Rudy at 12/9/2004 10:41:01 PM
Hello all, Trying to make a login page to a website. However I don't the user to be able to set a password, I want to control the password for everbody, and change it weekly. Any way, I have found alot of docs on Form Authentication to be used as a login page. But they all are a little di...more >>

Single external signon with Integrated Auth apps and regular webs
Posted by Phillip Jubb at 12/9/2004 10:29:57 PM
Hi, Well, after reading all of the posts in here, I'm still not quite sure if what I would like is possible. Here's my scenario: IIS5 (or 6 if I have to) with a large website. Within that website are different .NET applications and regular htm applications in their folders. The entire s...more >>

How do I update FormsAuthenticationTicker.userdata after ticket created?
Posted by Wysiwyg at 12/9/2004 2:32:56 PM
When a user logs on to an application the new FormsAuthenticationTicket is created with a userdata field which I can populate with anything useful I might want. A cookie is created with an encrypted hash of the ticket. Is it possible to update the ticket's userdata field once the ticket has be...more >>

Intranet Security
Posted by Richard at 12/9/2004 11:19:23 AM
I'm building an Intranet Web app to track our company's purchase orders. I would like to have the employees use the app without being prompted for a user name and pw, hoping to catch their identities from their Windows account. Since it's an Intranet app, I'm using Windows authentication, and...more >>

Custom implementation for User.IsInRole??
Posted by Arthur Dent at 12/9/2004 10:48:35 AM
I have an app where im using FormsAuthenticaton, and doing my own authentication against a users table in my db. I have no problem actually getting the authentication to work as i want. When the user logs in though, it is also pulling out a logical bitmapped set of roles that the user belong...more >>

connecting VS.NET to IIS-what do I have to do
Posted by M D at 12/9/2004 8:10:51 AM
Using the first version of VisualStudio.NET and, I believe, IIS 5 (the one that comes with Server 2000) when I launch the ASP.NET application wizard and DON'T want to use localhost, what do I do? The process just errors or goes into a process that never completes or times out. I don't have a d...more >>

Interop.activeDS headache with Sharepoint v2 webpart
Posted by Fowler at 12/8/2004 12:49:29 PM
I've been working on a web part that will remind a user how many days they have until their password expires. I strong named it and created a custom security policy to allow it to live in the bin rather than the GAC. After many painful iterations with configuring code access levels and active di...more >>

System.Security.SecurityException: Security error
Posted by Abish Asharaf via DotNetMonster.com at 12/8/2004 5:30:09 AM
Dear All, The problem or error which I am getting while running my web application is as given below: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your...more >>


DevelopmentNow Blog