Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > march 2006

Filter by week: 1 2 3 4 5

ASP.NET User.Identity.Name value after a domain username change
Posted by Allister at 3/31/2006 3:14:02 PM
Hey I have an ASP.NET application that is on a Win2000 server in a domain with Active Directory. There are a number of client machines on this domain that access a website on the server. IIS has Integrated Authentication only, and no Anonymous access. I use the User.Identity.Name in my C# c...more >>


TripleDES with weak keys
Posted by Jeronimo Bertran at 3/29/2006 8:20:54 PM
I need to encrypt data using a weak key (all 0s) that is being supplied but I get an exception because the key is weak. Is there any way to make the TripleDES class encrypt with such a key? Thanks Jeronimo Bertran...more >>

Impersonation and accessing Windows file share
Posted by Julie at 3/29/2006 1:35:02 PM
Hi all, I have an ASP .NET application and am experiencing an interesting issue. The application runs under Windows integrated authentication and anonymous access is turned off; I need the current logged in user's ID for some initial processing. Partway through the code, I impersonate a s...more >>

Web.config <location> not redirecting
Posted by T-1000 at 3/29/2006 1:01:32 PM
I have a website with a /Admin subdir I want to protect via a signin.aspx page (which is in the Admin dir.) This is the entire contents of the web.config file located at the root of the website: <?xml version="1.0"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0...more >>

Invoke(SetPassword) in Active Directory, Works, Then Access is Den
Posted by ptstesting at 3/29/2006 7:15:22 AM
My setup: Using ASP.NET web app, have permissions setup properly, using impersonation as admin account before modifying active directory entry. I have the latest ..NET 2.0 and service packs installed. The problem: I can call Active Directory's myDE.Invoke("SetPassword", new object[] {Pas...more >>

Problem using ASP.NET 2.0 Membership and Roles
Posted by Mark Riley at 3/29/2006 2:09:15 AM
Hi, I have set-up my web app to use ASP.NET 2.0 membership and roles. It works OK on my local Windows XP Professional PC but when I upload the site to our Windows 2003 development server it doesn't. The local and development server web sites both point to the same SQL Server 2005 database (loca...more >>

VB 2005 .net- Login control - how do I validate user no / password against SQL server
Posted by Garry at 3/28/2006 8:10:57 PM
I am using VB 2005/.net building a web site i have created a login screen using a Login control. I need to validate the user no/password entered by the user against an SQL Server database table. I can not figure out how to do this? do I need to write some VB to read the SQL table or is th...more >>

Intranet access to SQL Server security issue
Posted by chris.nolan NO[at]SPAM feltex.com at 3/28/2006 4:39:49 PM
I've lost count of the number of postings I have read on this subject yet I can not find an answer. I've set up my config file with impersonation as true, IIS is set to Basic and Integrated authentication. The web page works fine on my local machine, but on the intranet server I get the error...more >>



401 Unauthorized on HttpWebRequest with DefaultCredentials (2003)
Posted by ivarley NO[at]SPAM spamcop.net at 3/28/2006 10:07:38 AM
Hi all, In moving an app from server 2000 to server 2003, we started getting errors from this code. It pulls a page (on the same web server) using a web request. This is an intranet site, and integrated windows authentication is turned on. Same exact code works fine on a Windows 2000 server. ...more >>

Web Server connecting to db server on different machines
Posted by Ben at 3/28/2006 8:06:03 AM
Hello Im creating an asp.net web app that will need to connect to a SQL Server db on another machine. I have set this up using trusted connections and impersonation in the web.config file but I am getting a "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'" message. I need this to work...more >>

Code works in Windows app. but not in ASP.Net
Posted by Rolf Barbakken at 3/28/2006 12:00:00 AM
I get this error in the webbrowser: "The specified domain either does not exist or could not be contacted" The code for the procedure is: Sub ListUsers(ByVal DOMAIN As String, ByVal OU As String) Dim srch As System.DirectoryServices.DirectorySearcher Dim result As System.Direc...more >>

Going from anonymous security to Windows Security in an ASP.NET application
Posted by Michael Randrup at 3/27/2006 7:01:16 PM
Hi, I have the following problem: 1) We have to validate users on an anonymous/public-website using a custom login page. 2) From this login page we redirect them to an extranet site, which shows them sharepoint information, etc. e.g. from this point on their web requests should be per...more >>

secure a folder
Posted by Fastau B at 3/27/2006 1:07:56 PM
Hi Buddies! I have an app where the client logs in using Forms Authentication. I'm not using the Profile, so I am not using the SQL2005 database for that. I have a "Users" class. Based on that, what's the best way to ensure that the user gets to a certain folder and no other folder? than...more >>

Client Certificates Issue
Posted by Infospy at 3/27/2006 8:16:01 AM
Hi! I'm developing a C#.Net WebPart running under Sharepoint Portal Server 2003. I've made a Form that captures n informations that will be stored under a SQL database. The problem is that i need to generate a Digital Signature using the same data. I Will generate a message Digest an...more >>

StrongNameIdentityPermission
Posted by SteveR at 3/27/2006 6:37:02 AM
I'm trying to protect my class library by using the following code StrongNameIdentityPermission(SecurityAction.Demand, PublicKey = "...")] To test if this is working I wrote another application with a different public key. When I try to call the function it still works. Why is it allowed t...more >>

Possible ways to link existing user table into SQLMembershipProvider?
Posted by Ryan at 3/24/2006 1:57:38 PM
Hi all, I have membership working well and I'm trying to integrate it into a database that makes heavy use of a pre-existing 'User' table. I'd like to keep my existing table (I've reduced the fields it holds so that it does not duplicate the .Net provided ones) as there are a lot of joins to ...more >>

Active Directory Authentication in IIS 6
Posted by P Webster at 3/23/2006 5:07:26 PM
We recently moved a web site that validated user credentials in Active Directory from IIS 5.1 to IIS 6, and the validation code no longer works. The web.config file is set to Windows authentication because all we do is verify the user on the login form so we can redirect them to the appropriate ...more >>

2.0 Login Control Not Redirecting
Posted by bigbrorpi NO[at]SPAM gmail.com at 3/23/2006 2:02:19 PM
Hi - I have forms authentication with an AD provider set up. I have a login page Login.aspx and a Default.aspx. When I go to Default.aspx, I get the login screen, I authenticate with my domain name and password, and it just refreshes the login screen (with the fields in the control being blan...more >>

authentication cookie missing for the remote client
Posted by kit at 3/23/2006 11:41:32 AM
Hello, Ihave strange issue with ASP.NET 2.0 web app using forms authentication. everything works fine from the local machine. But for the remote users (different computer on the LAN), cooies (includin authentication cookie) is missing. Is there a setting I need to change to make this work?...more >>

401 if AppPool is not Network Service
Posted by redcrystal NO[at]SPAM msn.com at 3/23/2006 11:38:09 AM
My setup: Windows 2003 Servers, IIS 6.0. There have almost certainly been adjustments to the configuration performed by the IT group that provisions these, but I don't have complete details on what they did. Visual Studio 2003, .NET 1.1. I created two web services, Ping and PingAuth. I put bo...more >>

Forms Authentication and dynamic folders
Posted by jason NO[at]SPAM dive-master.org at 3/23/2006 12:00:00 AM
Hi all, I am writing an ASP app that requires the users to authenticate (using forms authentication as this will be an internet app). Once authenticated they have access to there own folder that will have been created ahead of time. The folder will only be available to anyone authorised to...more >>

smart cards in asp.net
Posted by Val P at 3/22/2006 5:58:25 PM
I'm trying to read a smart card from asp.net. I've succesfully done it from a Win32 native application, so I know everything is set up correctly, including the CSP and the certificate on the CSP. So far, to get it to work, i've done the following on iis: Set up a folder inside my project, ...more >>

accessing users' email from Active Directory
Posted by tMan at 3/22/2006 2:21:28 PM
// ASP.NET 2.0, VS.NET 2005: (authentication mode = Windows) // i'm trying to access/display current users' email from AD. works fine when i run it in debug mode. however, when i publish the website and access the page, i get a "The specified domain either does not exist or could not be conta...more >>

ActiveDirectoryMembershipProvider - IsInRole problem
Posted by David Thielen at 3/22/2006 11:22:30 AM
Hi; For forms/ActiveDirectoryMembershipProvider authentication, I get an authenticated user but IsInRole fails. I am getting a FormsIdentity where authentication-"Forms" and name="dave". I do have to enter my domain password for it to login. web.config: <roleManager enabled="true"/> ...more >>

Impersonation in ASP.NET 2.0 (works from XP, not 2003)
Posted by Adam Clauss at 3/22/2006 8:37:51 AM
We have a C# webapp which we recently upgraded from .NET 1.1 to .NET 2.0. We need to access remote fileshares from our app, so we enabled impersonation in the web.config file by doing: <identity impersonate="true" userName="NT AUTHORITY\NetworkService"/> While redundant on Windows 2003 since ...more >>

ADAM and AuthorizationStoreRoleProvider
Posted by jbijleveld NO[at]SPAM gmail.com at 3/22/2006 12:09:30 AM
Hello, I'm having a problem configuring ADAM and the AuthorizationStoreRoleProvider in .NET 2.0 and I hope someone can help me out since I've been stuck with this one for quite some time. I did install ADAM, the Win2003 Admin Pack etc and configured my web.config file using the instructions...more >>

Stop HttpWebRequest on my site
Posted by Not4u at 3/21/2006 3:48:35 PM
Hello, Someone is using HttpWebRequest to automaticly post datas or retrieve datas from my site. How can i stop pages to be get by the HttpWebRequest method ? I know that pages get with HttpWebRequest have is no referer. So for me the solution is to check the referer of the calling page, ...more >>

Best way to provide security when need a WindowsIdentity
Posted by David Thielen at 3/21/2006 10:56:27 AM
Hi; Suggestions please. This is for a portal that we will ship to multiple customers so we need to make security as painless as possible while still protecting them. This portal does reporting and therefore needs to read files (xml) and databases (select only). I see it falling into 3 c...more >>

ASP.NET 2.0 Form Security Error
Posted by Sk at 3/21/2006 9:28:44 AM
Hi, I've the following code in my web.config - <authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" timeout="30" name=".ASPXAUTH" requireSSL="false" slidingExpiration="true" de...more >>

Custom RoleProvider question -- saving roles
Posted by Burak Gunay at 3/21/2006 7:27:18 AM
Hello, I derived a custom provider from the provider class. I then set cookieless="UseUri" in the web.config, because we don't want data stored on client machines. Everytime a page with an <asp:loginview> is called, the Role Provider page gets called and the database gets queried. ...more >>

Code Security
Posted by Asim Qazi at 3/21/2006 12:00:00 AM
Hi All i m working on a webbased project which includes some classes which are used to encode and decode passwords and authentication keys, i want that no body should b able to use my classes, how can i make them hide or secure so tha no one else is able to use my classes and methods. ...more >>

ActiveDirectory authentication - more issues
Posted by David Thielen at 3/20/2006 1:03:32 PM
Hi; Ok, I have ActiveDirectory authentication working but have a couple of issues: 1) My username must be dave@windward.local - it does not take windward\dave - why? 2) The authentication type is shown as forms - shouldn't it be NTLM? 3) Since I'm running from a computer on the domain and us...more >>

Deploying ASP Net to Server
Posted by John at 3/19/2006 12:20:50 PM
Hi, I am relatively new to ASP.NET and I'm having a problem with moving a simple application I wrote to a network web server. The application works find on my development work station and works on the network web server when I access using http:\\localhost\myapp or http:\\127.0.0.1. But I...more >>

Have <authentication mode="Windows"> half working
Posted by David Thielen at 3/17/2006 4:13:28 PM
Hi; For authentication of: <authentication mode="Windows"> </authentication> <authorization> <deny users="?"/> <allow users="*"/> </authorization> I get the user and the user is authenticated. But IsInRole is failing: // these 4 calls are correct IPrincipal user = Conte...more >>

Security overview
Posted by Arturo Buonanni at 3/17/2006 3:37:05 PM
I'm a programmer new to ASP.NET and web development in general. I'm going to code a web application and I'm concerned about the security issues that arise on this field (that's new to me). I'm using VWD2005 Express Ed. and I've read the online help about security. Now I've a doubt about...more >>

Asking again Can't get AspNetActiveDirectoryMembershipProvider to
Posted by David Thielen at 3/17/2006 3:06:28 PM
Note: complete Web.Config below When I use AspNetSqlMembershipProvider everything works fine. But when I try AspNetActiveDirectoryMembershipProvider I get "The specified connection string does not represent a valid LDAP adspath.". I can run ldp.exe on the same computer. do Connect, Connect...more >>

Forms Authentication: Redirect to Unauthorized.aspx in subdirectories?
Posted by Diane Y at 3/16/2006 3:28:44 PM
I'm using Forms Authentication in my ASP.Net app and I'm separating all = my pages into different directories based on their authorization = requirements (e.g., all my administrative pages will go under one = directory and I have a <location> tag set up in my web.config to allow = rights to only...more >>

Need help on in aspnet_Users table under aspnetdb dabase in SQL Server 2005.
Posted by Learner at 3/15/2006 7:38:56 PM
Hello, Based on our data model we have a need to create a column 'DealerShipID' in the table aspnet_Users under aspnetdb database for a demo that we are working on. Hod do I do that? Just create another column and throw some dummy values? And how do I retrieve these values into my webform? I...more >>

CRC of a file
Posted by SEGACO at 3/15/2006 11:28:18 AM
Hi, How can I calculate the CRC (cyclic redundancy check) of a file in .NET?? If it's not possible, there are a free control that can do that??? Thanks....more >>

LDAP membership provider
Posted by Yu Chai at 3/15/2006 12:00:00 AM
We are building our first asp.net 2.0 app. We want to provide signle sign on for our users. We think that a directory server is the way to go (we may use OpenLDAP) However, I found that no LDAP membership provider is provided. Anyone write this one already? Any other advice? thx ...more >>

Random credentials request
Posted by Brad Coble at 3/14/2006 11:06:55 AM
First, please forgive me I'm new here. This question may already have been answered. I have a Win2K3 server running IIS6 only on our intranet. My plan was to use our domain to authenticate users. Here is what I set in web.config: <authentication mode="Windows"/> <roleManager enabled="tr...more >>

Roles Forms Authentication
Posted by Julio Delgado at 3/14/2006 7:07:09 AM
Hi, I have a web application that I upgraded to 2005. The applications uses roles and forms authentication. The application works fine on my dev computer but when I deploy the application and I sign it continues to ask me to signin. Any Ideas what could be wrong again it works fine on my...more >>

ASP .NET 2.0
Posted by Lou Civitella at 3/13/2006 4:45:55 PM
I am trying to run a local web site on a clients computer. Created the new web site in IIS and set the ASP .Net version to 2.0. When I try to access the web site using http://localhost:9999 I get a web page with this on it. 'Server Application Unavailable' I looked at the event log and these...more >>

Use System.DirectoryServices from classic asp
Posted by jrsrls NO[at]SPAM hotmail.com at 3/13/2006 8:16:42 AM
I need to authenticate against AD from a classic asp site. I've created a C# project that runs as an exe and successfully authenticates using DirectorySerivces with the entered credentials. When I add the code to a class (.dll) and register the object with regasm and gacutil the asp page succe...more >>

audit file location
Posted by David Thielen at 3/12/2006 12:26:27 PM
Hi; I am writing an audit file of actions taken on my website. This is an audit trail, not a log file (I open it in append only mode and the user it is running as does not have delete or overwrite permissions). Where should I place this? I want a folder under the webapp folder that a use...more >>

Full name & email from principal
Posted by David Thielen at 3/12/2006 11:02:28 AM
Hi; I am supporting both ActiveDirectory and the built-in 2.0 forms support for authentication/authorization. How can I get the user's full name and email address in each case? -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com ...more >>

2.0 built-in forms security and SID equivilent
Posted by David Thielen at 3/12/2006 10:57:26 AM
Hi; If I use Active Directory for security, I can track the owner of records I create in the database using the SID of the user. If the user "dave" is deleted and a new one created, the new "dave" does not get access to the records of the original "dave". However using the 2.0 built in f...more >>

HttpHandler and security
Posted by klausand NO[at]SPAM gmail.com at 3/12/2006 2:23:51 AM
I have wriiten a HttpHandler-class that works as a dispatch layer - the class analyses the incomming url and creates the appopriate classes to serve the request. I some cases I want the user to authenticate himself (fx. if the url ends with the word "edit") - how do I force the user to authent...more >>

How to log him out if he does not click "Logout"?
Posted by antonyliu2002 NO[at]SPAM yahoo.com at 3/11/2006 11:50:30 PM
I know this has been asked many times. I searched a little bit, but could not get a good solution. I am using form authentication for my small web application. I know that I can easily log out a user by using FormsAuthentication.SignOut() and Session.Abandon(). But this will depend on th...more >>

Active Directory Groups
Posted by Ernest Griffin at 3/10/2006 7:12:06 PM
I am trying to determine if the logged in user belongs to an Active Directory Group. I have started with these code snippets: WindowsIdentity id = WindowsIdentity.GetCurrent(); IdentityReferenceCollection irc = id.Groups; This only returns the ID of the groups, I need the AD Group N...more >>


DevelopmentNow Blog