all groups > asp.net security > august 2005
Filter by week: 1 2 3 4 5
LDAP query fails from ASP.NET
Posted by maria.s at 8/31/2005 8:46:30 AM
Hi,
I've got a problem with an LDAP query submitted from my ASP.NET application.
Configuration: Windows 2003 Server Standard Ed., the application uses
Windows Integrated Authentication and is configured with <identity
impersonate=â€true†/>
I try to submit the following query:
... more >>
Enabling SSL on the server with test certificate
Posted by Lenn at 8/31/2005 8:05:07 AM
Hello,
I've been struggling with this for couple of days now. All I want to do is
to enable SSL protocol on the webserver.
I want to be able to generate and sign my own certificates. I used various
tools to do that, such as makecert.exe from .NET SDK and even downloaded
OpenSSL and genera... more >>
Dynamic page security authorization?
Posted by Craig Vedur at 8/30/2005 4:51:03 PM
Hey,
My client wants to implement some sort of dynamic location role-based
security rule for a web app. Normally, in my web.config, I define the
location authorization rules such as:
<location path="WebForm.aspx">
<system.web>
<authorization><allow roles="Employee" /></authorizatio... more >>
SSL Webservice, makecert.exe cert issue
Posted by Lenn at 8/30/2005 8:21:06 AM
Hello,
I am trying to enable SSL on the web server. I want to generate a test
certificate for development server. I used makecert.exe utility to generate
test certificate (
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfcertificatecreationtoolmakecertexe.a... more >>
Wierd Windows Authentication Behavior
Posted by Craig Vedur at 8/30/2005 8:01:30 AM
Hey,
OK, so, i'm implementing windows security in a web app and found a strange
thing. can anyone explain what is going on?
I have my web app and in web.config i have the following entries in their
respective places
:
<authentication mode="Windows" />
<identity impersonate="t... more >>
how to get all groups from AD?
Posted by Craig Vedur at 8/30/2005 6:56:06 AM
does anyone know how to programatically in C# get a list of all groups from
active directory? i thought i saw a sample on MSDN, but, I can't find it.
Thanks... more >>
Forms Authentication expiry issue
Posted by noemail NO[at]SPAM hotmail.com at 8/30/2005 4:31:05 AM
Hi,
I'm having a problem with forms authentication on an asp.net
application. To summarise, after logging in initially, the login never
expires. I can come back to the application after days, and I'm still
logged in. However, if I delete cookies from the browser I am once
again redirected t... more >>
How to have windows security w/ anonymous access?
Posted by Craig Vedur at 8/30/2005 3:33:01 AM
Hi,
I'm a bit confused as to how to have windows authentication / integrated
windows authentication with allowing anonymous access.
for example, i have an app where pages A,B,C i want to allow anonymous
users.... but, pages D,E,F, i want to use Windows Security (user must provide
a valid... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Security Warning
Posted by Stephen Noronha at 8/29/2005 8:56:19 AM
Hi,
I am supposed to modify/manage some code. it was on a machine in "Network
Shared", I whacked it from there and put it in my wwwroot folder,
I opened it after creating a Virtual directory and it gave me this "Warning"
When I open the "Sample.sln" I get warning + Errors which reads: The pr... more >>
Does 'IsInRole()' check against Active Directory groups?
Posted by Craig Vedur at 8/28/2005 12:43:01 PM
I need to build in some role authentication for a web app... so, going to
use the web.config to build my rules for the location files.
my question is.. does anyone know?
on my development box (out of work), i'm out XP Pro... and i've created
some groups and users to test it... ... more >>
do not allow users to refresh the page
Posted by kyan at 8/27/2005 12:00:00 AM
hi
i have write an asp.net application that insert the some rows in sql
database i want to deny users from refresh the page because it cause a new
insert row in database
thanks for your help
... more >>
Check the username and password with the active directory
Posted by Filip De Backer at 8/26/2005 5:25:21 AM
Hi everyone,
In asp.net 2.0, there is a Login control.
I want to use that to log in, but I want to check the username and password
with an ldap query. Is that possible. I want Windows authentication, without
the login screens of windows you get when you use Windows Authentication in
the we... more >>
System.DirectoryServices doens't work
Posted by Filip De Backer at 8/26/2005 4:25:08 AM
Hi everyone,
I want to use the LdapAuthentication class in asp.net 2.0.
To use that class, I must say
"using System.DirectoryServices"
But that doenst' wordt for asp pages, only for windows apps, or am I wrong?
thanks!
Filip... more >>
PROBLEMS with AuthenticationType being NTLM and Negotiate
Posted by tepe.hughes NO[at]SPAM gmail.com at 8/25/2005 2:52:37 AM
I have two webservers running the same aspx pages. (The webpage allows
Active Directory Editing).
These pages run fine on the 1st server but not on the second server (it
errors with Logon failure: unknown user name or bad password).
The web.config file (on both servers) have these options se... more >>
authentication mode=windows and forms togather in the same project
Posted by Oren101 at 8/25/2005 1:17:04 AM
is it possible to use authentication mode=windows and forms togather in the
same project?
i have a 2 different asp pages in my application .one of them should be
authenticated with 'forms' mode and the other one with 'windows' mode.
i was able to do each one alone with the help of the <applic... more >>
Roles and Forms Authentication problems
Posted by wrecker at 8/24/2005 3:10:03 PM
Hello all,
I have been struggling with getting role-based security working with forms authentication. There
are two things happening/not happening in my code that for the life of me I can not figure out.
The first is that when I create my authentication ticket containing my roles and add the... more >>
Access to path **** denied.
Posted by George Hardy at 8/23/2005 4:53:55 PM
hello all,
why would the following error occur, and how is it fixed? It seems like IIS
cant create a temp directory. I also added the ASPNET user to the
\Temporary ASP.NET Files\ directory with full rights, but it didn't seem to
work.
Exception Details: System.UnauthorizedAccessExcep... more >>
Disable "prompt me to save passwords" programaticly?
Posted by SteveSu at 8/23/2005 1:54:33 PM
Hi!
I have website which prompts the user to login to get access.
I want to disable the possibility that the user is prompted to save the
password by Internet Explorer. I can do this manually by unchecking
"Prompt me to save passwords" in the Tools->Internet
Options->Content->AutoComplete dialo... more >>
Login failed for user '\'
Posted by Karl S. at 8/23/2005 11:27:17 AM
I'm at a loss to what the solution is. I have an intranet application that
runs on w2k3 with iis 6.0 security set to Integrated Windows authentication
only. I am using C# in .NET 2003 (7.1.3088) w/ Framework 1.1 (1.1.4322 SP1).
The web.config authentication mode="Windows" and authorization ... more >>
Redirection according to roles?
Posted by TheTraveler at 8/23/2005 8:55:47 AM
Hello,
1. where can i place the code which will redirect users, according to
their roles ?
2. is redirection, according to roles accustomed or is there another
mechanizm out there ?
3. can this be done inside Application_AuthenticateRequest funcion on
file: Global.asax ?
4. i want to ... more >>
sending authentication token to ASP / .NET
Posted by prab at 8/23/2005 6:25:16 AM
I neeed to send authentication token /cookie to ASP.NET login page. Can
any one tell me how to do it. Do I need to configure anything in ASP
..NET . Please advise.
Cheers
Prabu
... more >>
windows authentication with forms
Posted by dennisG at 8/23/2005 3:01:46 AM
Hi,
I have a problem with windows authentication, with a web based form. I
can logon with the function logonuser with my username, password and
domain, but I don't get the windows rights of my windows account. I've
looked to different websites, but it doesn't solved my problem.
My code, fun... more >>
Enabling Forms Authentication Stops Button Click Events
Posted by Waqas Pitafi at 8/21/2005 11:05:02 AM
Hi,
3rd day is already gone without any solution.
My problem is, I have a Windows Server 2003 sp1 machine as my development
platform having NTFS filesystem. Other notable components installed are
ODP.NET (latest version), WSE 2.0 sp3, offcourse VS.NET 2003 so .NET 1.1.
When I enable For... more >>
deny users to enter password upper than 3 or x
Posted by kyan at 8/20/2005 11:49:37 AM
hi,
i wrote a asp.net login and i want to deny users who enter incorrect
password more than 3 or x.
thanks for your help.
... more >>
URL Authorzation Problem
Posted by nicemonitor NO[at]SPAM hotmail.com at 8/19/2005 1:26:31 PM
I have created a web application that is utilizing Forms Authentication
and URL Authorzation for application security.
The problem arises when an authenticated user (the authentication
ticket cookie has been set) attempts to access a sub directory or file
where I have explicitely denied them a... more >>
Running Aspx Files with forms authentication alongide of asp pages
Posted by kleykir at 8/19/2005 11:18:37 AM
I have a web page that is created in asp.net and uses FormsAuthentication.
All of the info for this is set in web.config file.. I copied the login
page, the actual page and web.config file to a virtual directory on IIS
which has a bunch of other asp pages that belong to the site..
Can I do ... more >>
security steps to allow webservice to run exe
Posted by Billy Greening at 8/19/2005 10:02:48 AM
What are the steps needed to give my webservice adequate security
priveledges to run an exe?
Here is my basic webmethod:
Process proc = null;
ProcessStartInfo procInfo = new ProcessStartInfo("Notepad.exe");
procInfo.UseShellExecute = false;
procInfo.CreateNoWindow = true;
proc = ... more >>
Change User attribute in Active Directory by web (vb.net)
Posted by malin NO[at]SPAM o2.pl at 8/19/2005 12:32:57 AM
m=2E..@o2.pl 19 Sie. 09:30 poka=BF opcje
Grupa dyskusyjna: microsoft.public.adsi.general
Od: m...@o2.pl - Znajd=BC wiadomo=B6ci tego autora
Data: 19 Aug 2005 00:30:24 -0700
Lokalna: Pi=B1t. 19 Sie. 2005 09:30
Temat: Change User attribute in Active Directory by web (vb.net)
Odpowiedz |... more >>
Role-based authentication and Forms and System.UnauthorizedAccessException
Posted by wrecker at 8/18/2005 2:18:46 PM
Hi all,
I'm trying to implement role-based authentication for the following directory structure in my
ASP.NET app.
login.aspx
Admin/
Members/
The web.config in my Admin directory is as follows
<configuration>
<system.web>
<authorization>
<allow roles="Admin"/>
... more >>
Rendering in-memory images from UNC file share
Posted by Eric at 8/18/2005 7:49:05 AM
I have this same problem, and I've *half-way* resolved it. It turns
out that this is not exactly an IO problem; it's actually a security
issue and maybe even an ASP.NET bug. Here is what I've done so far...
1. Learned from this post that there are problems with the FromFile
method when usin... more >>
Login Encryption; Login Lookup
Posted by Phil C. at 8/18/2005 12:31:11 AM
Hi. I'm working on an ecommerce application. There is a conventional
registration page
where the person is identified by his entering an email address and
password.
I was planning to have all customer information encrypted, and the password
salted and hashed with SH-1. However, when a reg... more >>
Security Exception
Posted by Tumurbaatar S. at 8/18/2005 12:00:00 AM
How to allow the default user account of ASP.NET to access system registry
of WinXP?
My page raises following exception and I believe that happens because my
script
accesses the Event Log of WinXP:
my code:
if (EventLog.SourceExists("MySource"))
EventLog.CreateEventSource("MySource"... more >>
IIS 6 and ASP.NET security
Posted by Michael Tsai at 8/18/2005 12:00:00 AM
Hi,
It said that IIS 6 use HTTP.sys as the front end for
handling HTTP request, and pass ASP.NET requests
to w3wp.exe. So I think this also means security
settings in IIS (metabase) is bypassed, right?
Apparently the answer is no, I'ved tried using IIS to set my
ASP.NET web application's aut... more >>
Extremely freaky Security Exception
Posted by William Sullivan at 8/17/2005 11:08:04 AM
I have a page that (simply put) displays information from a SQL database.
I've split off the business logic and database access logic into different
classes. My database access class exposes static methods for loading typed
datasets with information from the database. I call methods in this... more >>
Problem while using cookieless session
Posted by Priya at 8/16/2005 3:14:04 AM
We are facing problems while using cookieless session. When the user copies
and pastes the url from one machine to another, he is able to access the data
entered by the first user. Is there any way to eliminate this problem.
Thanks in advance.... more >>
Creating files in a unc shared drive.
Posted by Tom at 8/15/2005 6:53:02 PM
I have a web app that allowes you to upload files to a shared forlder and
also read them off a list of uploaded files.
I created a shared drive on the destination server, and using a mapped
virtual folder to the shared, I can view the files from the shared drive.
My problem is writing the ... more >>
How can roles be determined for a resource?
Posted by Gery D. Dorazio at 8/13/2005 7:37:51 PM
I restricting access to a web folder in the web.config file with entries
like this:
<location path="Account" allowOverride="false">
<system.web>
<authorization>
<allow roles="User,Admin" />
<deny users="*" />
</authorization>
</system.web>
... more >>
Server Application Error
Posted by bruce at 8/12/2005 12:46:02 AM
ASP.NET app running for about a year with no problem and suddenly this week
it's giving error message. The same as the one decribed by another user.
Even stranger is that we only have this problem from some web clients
(desktop browser, IE) , some other people do not have problems at all from... more >>
Integrated security fails on new server
Posted by kaborka at 8/11/2005 6:56:02 PM
We are migrating from our old intranet server to a new one. My ASP.Net C#
app uses integrated security to connect to a SQL 2000 server located on a
different machine in the same domain. It is working fine on the old server.
The following are in web.config:
<authentication mode="Windo... more >>
Login Controls with Asp / Asp.net 1.1
Posted by Baron at 8/11/2005 12:00:00 AM
I found that .Net 2.0 has Login Controls / support for access control
I would like to ask how could these components work with existing 1.1
applications or even asp applications?
thanks
... more >>
Impersonation on a domain controller
Posted by martin at 8/11/2005 12:00:00 AM
Hi
I have an intranet page that starts / stops windows services on the local
machine.
This works fine on my dev machine and indeed all machine that I have tried
it in that are NOT domain controllers.
unfortunatly the machine I want this to run on is a dc.
I have turned on windows authent... more >>
Setting Principle for HttpWorkerRequest
Posted by Michael Palmer at 8/10/2005 8:01:02 AM
I am implementing my own web server that will authenticate users using out-of-band
methods (like IIS does in the case of Windows authentication). I am implementing
an HttpWorkerRequest and asking HttpRuntime to process the request. I expect
existing ASP.NET applications to work without changes... more >>
Losing Session Data when switching from http -> https and vice versa
Posted by MattC at 8/10/2005 12:00:00 AM
How can the session be persisted when switching?
MattC
... more >>
problem while executing exe from web app
Posted by Yoshitha at 8/10/2005 12:00:00 AM
HI
I am calling exe (vb.net application) from web application for this i wrote
code like this
system.diagnosis.process.start("e:\...")
i wrote above code in button click event.
inorder to work this application i made few changes
1. in machine.cinfig file, in <Process Model> entitit... more >>
Limiting access to pages
Posted by Lyners at 8/9/2005 2:00:12 PM
I have an application that runs over our intranet. I have some pages I only
want "Administrative" people to see. I thought one way of doing this was to
creqate a sub directory in the application dorectory and add a web.config
file that would limit access to only those that we want as admin. Bu... more >>
Windows authentication from ASP.NET to SQL Server
Posted by Nils Magnus Englund at 8/9/2005 12:00:00 AM
Hello,
I am having trouble using Integrated Windows Authentication between our
intranet server and our database server, both of which are on our local
domain.
Windows authentication works for our intranet server - my domain user
"DOM\nme" is correctly authenticated and authorized to view... more >>
Another Sql Injection
Posted by JR at 8/8/2005 8:54:56 PM
Hi guyz,
I have a form which is to record the user id, password and email.
I filter the email using requiredfield validator and regularexpression
validator.
Everything works great till I found somebody can put this data in the
database, like this :
having 1=1--
for the email field.
Ca... more >>
SQL Injection
Posted by Arne at 8/8/2005 5:23:01 AM
Will the code below protect me from SQL injection in an ASP.Net page?
Dim cmd As SqlCommand
Dim prm As SqlParameter
Dim salary As String
cmd.CommandText = "select salary from employee where name=@name"
prm = New SqlParameter("@name", name.text)
cmd.Parameters.Add(prm)
salary = cmd.ExecuteNonQ... more >>
Web Services Security
Posted by Brent at 8/5/2005 5:00:27 PM
Hi everyone, im about to start to design an application where security will
be a must. I am starting to develop a web service that will be used for
winform applications either from the local lan or from the internet. Also, i
might use the same thing in an asp.net web site. I will pass a datase... more >>
equested registry access is not allowed (using Enterprise Library)
Posted by Andrés Cadavid Gómez at 8/5/2005 1:55:03 PM
Hello,
im using the enterpirse Library - July 2005 and when i had published my
application in the production server, i got this error:
Exception Details: System.Security.SecurityException: Requested registry
access is not allowed.
Im using the configuration, data, exception blocks.
... more >>
|