all groups > asp.net security > july 2005
Filter by week: 1 2 3 4 5
Forms authentication not working right
Posted by Joe at 7/29/2005 3:26:47 PM
I have a subfolder protected with Forms Authentication. When any page in
that folder is requested my login page comes up and the user is prompted to
login. This works fine.
Once the user info is validated I create a cookie and setup the
FormsAuthentication.
The problem I get is that the Re... more >>
Losing custom identity
Posted by martymcdonald NO[at]SPAM comcast.net at 7/29/2005 6:35:08 AM
For authentication we are using an external DB. I can use Forms
authentication and use the loginUrl="MyLoginForm.aspx" just fine. But
for authorization, we cannot use a static list of roles for people,
their authorization depends on factors which change as they use the
system.
We must determ... more >>
how to prevent auth ticket expiration
Posted by Perecli Manole at 7/28/2005 2:41:08 AM
In the forms authentication construct, I need a way to prevent ticket
IssueDate and Expiration from being updated for a specific page only. By
default forms authentication updates these two values whenever a page is
requested and slides these values forward. Is there any way to forgo this
procce... more >>
Exception Access denied , creating a new excel object in ASP.Net
Posted by Hemant shastri at 7/27/2005 9:48:03 PM
In my web application i am reading the data from excel file and inserting the
records into the database.(In ASP.net C#)
for some users i am getting exception "Access denied" at the following line
of the code.
Excel.Application=new Excel.Application();
for some user it is working fine.
In ... more >>
trouble w/ Forms Auth and domain cookies
Posted by jeffpriz NO[at]SPAM yahoo.com at 7/26/2005 1:20:36 PM
I'm having trouble with a domain cookie and forms authentication.
We have several sub-domains so we create a domain cookie for forms
authentication purposes:
cook.domain = ".mydomain.com"
All is good with the world.. I can go all over the place and get in to
my apps... Great .. except now I... more >>
CreateProcessWithLogonW
Posted by Todd B at 7/26/2005 9:01:03 AM
Hello,
I am developing an ASP.NET application that allows users to enter data using
web forms, then run an EXE when they click the appropriate button. The EXE
needs certain security rights not available to the ASPNET user.
After playing around with impersonation, I found that even using... more >>
PGP class library
Posted by Michel Prévost at 7/25/2005 2:18:32 PM
Anyone knows about a .NET (1.1) PGP class library, either from public domain
or commercial?
Thank you,
Michel
... more >>
Forms Authentication: <location> authorization not bypasssing login page.
Posted by M Gallagher at 7/23/2005 4:07:00 PM
I am trying to configure my forms authentication so a certain page is not
subject to a redirect to the login page. This seems like it should be a
simple thing to do with a <location> tag, but its just not working. Requets
to the page (public.aspx) specified in the <location> tag are still be... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to get of last created user using CreateUserWizard?
Posted by Rodusa at 7/22/2005 2:44:06 PM
Could someone please recommend the best way and how to obtain the last
inserted userid of users (security) table using the Button click event
of CreateUserWizard? In classic Asp and Asp.net 1.x I used the
@@identity to get the last inserted record of my custom table, but now
I don't know how Asp... more >>
Forms authorization cookie always set to expire in 2055?
Posted by Amil at 7/22/2005 9:30:53 AM
I'm using Forms authorization. In my <forms> section I have timeout="30",
but when I examine the cookie, it shows it expiring in 2055? Why?
<authentication mode="Forms">
<forms
loginUrl="/login.aspx"
protection="All"
timeout="30"
path="/">
... more >>
Security question?
Posted by MilanB at 7/22/2005 2:00:01 AM
Application has a webform where user can edit/modify some information that
are stored in database.
When I show data to user, I must somewhere memorize ID of database record
that is currently edited.
Where to do that? So malicious users can not chage that ID (of current
edited record), a... more >>
Java security api - DCE 128bit encryption with .NET
Posted by RonF at 7/21/2005 2:22:04 PM
iI have a web app that currently gets the userID from a 509 client cert.
Works great.
A new client wants to interface our web app in a WebSphere Portal with a
single signon for their clients so they want to call our default page via a
post and pass the userID in an encrypted query string. ... more >>
Please Help!-Trying to brows my asp.net application but I get a logon prompt-
Posted by J-T at 7/21/2005 11:22:32 AM
Hi All,
We have an asp.net application on a windows 2003 server which is part of a
domain controller which my worksatis is too. We have impersonated in our
applciation with a fixed identity account which is also a domain account and
is part of the admininstrator group of the webserver.The a... more >>
Session State vs. What?
Posted by David Lozzi at 7/21/2005 10:52:08 AM
Howdy,
I just learned how to use Forms Authentication. yeah me! However, it is
quite limited as to how much information you can store and retrieve from it.
For example, in my past ASP and ASP.NET applications I have used the session
state to store a user's IS, Fullname, security level, emai... more >>
forms authentication cookie changes
Posted by Andy Fish at 7/21/2005 12:00:00 AM
Hi all,
For reasons I would rather not go into, I sometimes need to get the value of
the forms authentication cookie and use it later when submitting another
request to the server.
mostly this works fine but sometimes it seems that the server decides to
change the forms authentication cooki... more >>
Multi Authentication Forms
Posted by Nicolas Joly at 7/21/2005 12:00:00 AM
Hello,
I have a web site with :
- A Private Press Area
- A Back-Office
For the BOffice, i used : Authentication Mode Forms, to a form with cookie
and ticket.
And used a web.config avec deny users pour le repertoire de BackOffice
Je souhaiterais utilisé la même formule pour mon Espace P... more >>
The server is not operational
Posted by CalSun at 7/20/2005 11:22:20 AM
Hi all,
I really need your help on this problem. (no help for 1 day goolging).
I use form authentication on my 2 simple aspx pages.
User is redirected to login.aspx, then see the main content page.
I use LDAP to verify the user from a domain named Dserver where the AD =
users locate.
Eve... more >>
Re. Global.Asax not working Server Side
Posted by Jimmy Jazz at 7/20/2005 11:05:01 AM
Hello,
Using cookieless roles based security.
Setting
HttpContext.Current.User = New GenericPrincipal(id, Split(userData, ",
"))
in Global.asax Application_AuthenticateRequest
On my desktop works fine. Server side nada.
Any ideas?
Thanx Jim
... more >>
Best Authentication Provider
Posted by David Lozzi at 7/20/2005 7:30:23 AM
Howdy,
I've written a few apps already and I have done custom authentication like
so: prompt for user name and password, verify information against SQL table,
then load returned username, ID, security, etc. into session state. This
works and frankly I'm not sure why i'm posting this except ... more >>
Failure to set credentials
Posted by Philip Colmer at 7/20/2005 12:00:00 AM
I've written a web service that returns some user-specific information. I'm
calling that web service from an InfoPath form as managed code:
MsgBox("Calling WhoAmI service", MsgBoxStyle.OKOnly, "OnLoad")
Try
svc.Credentials =
System.Net.CredentialCache... more >>
asp.net login contol using url redirect
Posted by Rico Wind at 7/20/2005 12:00:00 AM
Hello
I have an asp.net website that uses the login control and a custom build
membership provider. The site is running fine, but the problem is that
i cannot use it in a frame from another site. When logging in the login
screen just reapears. It will however give back a message if a wrong
u... more >>
using impersonation
Posted by Ohad Young at 7/20/2005 12:00:00 AM
Hi,
I wanted to use impersonation in an asp.net web service application.
The following line was added to the web.config:
<identity impersonate="true" userName="user" password="12345"/>
If the user is not added to the administrators group of the computer it
won't work. \
Is there a better... more >>
Remote connection to the Intranet
Posted by Peter Afonin at 7/19/2005 12:59:15 PM
Hello,
I've created several ASP.NET applications for our Intranet. Since we don't
want everyone to access all applications, I've added some limitations in the
Web.config:
<authorization>
<deny users="?" /> <!-- Deny anonymous users -->
<allow users="specialty\pafo"
roles="specialty\Sale... more >>
ClassFactory cannot supply requested class (2nd Post - MSFT Please make an effort!)
Posted by Phil at 7/18/2005 3:39:06 PM
I've searched long and hard thru the groups for similar issues but
unfortunately I cannot still resolve my issue.
My issue is that I've moved webservices from a W2k server to a new Win
2003 server. The service I'm having issues with is built with C# but
accesses a VB6 COM object (which is re... more >>
ASP.NET Fixed Identity Impersonation
Posted by ADavis at 7/18/2005 8:48:03 AM
We have a development web server (Windows 2000 Server) and a production web
server (Windows 2000 Server) both are running IIS 5.0 and have the .NET
Framework 1.1. We have asp.net fixed identity impersonation running on the
development server and it's fine. We moved the website to the pr... more >>
Customize CreateUserWizard
Posted by Abdul Khaliq at 7/15/2005 11:38:02 PM
Hi Everyone,
I am using Microsoft's Visual Studio .Net 2005 Beta 2 Team Suite. I am
trying to create new user with the help of CreateUserWizard, I right click
the control and clicked customized and added new fields like First Name,
Middle Name, Last Name, Phone etc. This new fields which I h... more >>
Extending Windows Identity
Posted by Stokesy at 7/14/2005 11:32:04 PM
Hi,
I wan't to implement an reusable login framework which extends on
WindowsIdentity to provide additional attributes which can be filled from the
AD or a Database.
Is the best method to implement IIDentity or to inherit from
WindowsIdentity. If the latter, can someone post a sample on... more >>
Serious help needed with beta 2.0 SiteMapProvider..
Posted by RCS at 7/14/2005 6:06:29 PM
All,
OK, so I'm working on a template for our new ASP.NET applications. Part of
this, includes using the new menu and breadcrumbs control in ASP.NET 2.0
(I'm using beta 2).
I put the hierarchy of the applications and navigation in a database, and am
able to pull that into the app by inhe... more >>
Security context of httpContext,WindowsIdentity,Thread
Posted by J-T at 7/14/2005 11:56:47 AM
I think my other question is that: According to this article
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetAP05.asp
in Table 4(last one) it says that :
<identity impersonate="true"/>
<authentication mode="Windows" />
then everything would be under the co... more >>
Storing Role And User Id in UserData of FormAuthentication
Posted by Jamie Pollard at 7/14/2005 11:01:51 AM
hello,
i have been scouring the groups for the best possible solution to this
problem, but can't seem to find my exact scenario, so hopefully someone
can get me back on the right path. my situation is the following:
i have a asp.net app that uses formsauthentication, and in the UserData
fie... more >>
Multiple logins
Posted by Søren M. Olesen at 7/14/2005 10:22:18 AM
Hi
I'm working on a WebApplication which uses Forms authentication. What I'd
like is for a user to be able to open two browserwindows and login as two
different users. However it seems like IE & FireFox uses the same cookie
across Browser instances, so all my Session variables are shared ac... more >>
ASP.NET v2.0 login control issue with SQL Server 2000
Posted by RedEye at 7/14/2005 8:35:32 AM
Hello,
I am working on a test site to explore the new login controls and membership
features of ASP.NET v2.0. I have tested the controls using SQL Express and
have now decided to try using a central SQL Server 2000 database. When I use
the all of the included controls with SQL Express every... more >>
Writing to event log
Posted by Tlink at 7/14/2005 12:00:00 AM
I am trying to write to the event log using the following code from a aspx
page benhind code.
Function WriteEventlog(ByVal LogName, ByVal MachineName, ByVal
Source, ByVal EventMessage, ByVal EventID, ByRef Category, ByRef
ErrorResults)
***values ... more >>
how to access registry
Posted by Yoshitha at 7/14/2005 12:00:00 AM
Hi
I am developing web application through which i've to write and read the
values from the registry.
When i set impersonate property to "false" it is displaying exception "
Requested Registry Access is not allowed"
so then i changed impersonate to "true" and it is reading values from the
regi... more >>
Can not open the application
Posted by Yoshitha at 7/14/2005 12:00:00 AM
Hi
When am trying to open the asp.net web application am getting the following
error.
" visual studio.net can not create or open the application, the likeliest
problem is that required components are not installed on the local web
server. Run visual studio setup and the web development compon... more >>
Connecting to DB and other resources outside the domain
Posted by J-T at 7/13/2005 2:44:52 PM
We are using **NTLM** as the authentication type.If I use this in my ASP.NET
application :
<identity impersonate="true" username="MyUser" password="123"/>
<authentication mode="Windows" />
and MyUser is the local account of the box which hosts my web application
,then can I connect to a r... more >>
Windows integrated
Posted by J-T at 7/13/2005 11:35:14 AM
We have an asp.net application with <identity impersonate="true"/> and
<authentication mode="Windows" /> in our web config and we are using Windows
integrated in IIS and also NT AUTHORITY\NETWORK SERVICE account in its
application pool. I create an object in Global.asax which monitors a folde... more >>
Custom Security Object - How to??
Posted by seal at 7/13/2005 8:31:03 AM
Hi
I work for a company that has user and user roles in the database and a
very, very complicated long list of rules on how to let a person see the data
from a page or control. My question is I want to re-write the security object
and I am looking for suggestions as to what the best way to... more >>
Registering SQL Server 2005 Beta 2 with ASP .Net 2.0 Beta 2
Posted by Pavan at 7/12/2005 1:56:02 PM
Hi All,
I am using SQL Server 2005 Beta 2 version (NOT SQL SERVER EXPRESS EDITION)
in my system named 'MySys'.
I am developing a web application, in which i am using Membership services
for storing my user's credentials.
Now Have i to register SQL Server 2005 with ASP .Net, because, AS... more >>
ValidateRequest question
Posted by Dilip at 7/12/2005 1:31:20 PM
I have a question on the ValidateRequest directive at the Page level.
I ran into a case where my querystring was filled with some value that
contained the '<', '>' symbols. I promptly got this error back from
IIS:
===============
403: Access Forbidden
Due to the presence of characters k... more >>
Strange decrypted character
Posted by Richard at 7/12/2005 12:26:15 PM
I'm using the RijndaelManaged example from MSDN, tweaked slightly to return a
string. Encryption goes well, but when I use the Decrypt function, the return
value is in the format of "1234
Notice there is no ending quotation mark, so when the value is used in a
report, it looks like 1234☺, w... more >>
Directory.CreateDirectory always fails.
Posted by Wayne Brantley at 7/11/2005 10:27:50 AM
Using a webservice in asp.net, I make a call to
Directory.CreateDirectory(@"c:\test") and this works fine.
I can create any directory anywhere on my local machine.
Now, I have an iomega NAS on the network. (There is not a domain). This
drive does NOT use permissions and essentially everyon... more >>
How to block SSL Security Alert in IE
Posted by Fiaz Ali at 7/11/2005 12:29:50 AM
Hi All
I have installed SSL Certificate in my IIS and when I redirect to Https IE
shows a Security Alert Dialog. Is there anybody who knows how to disable or
block that Security Alert so that when any user access my Secured Page he
will not get Security Alert Dialog. Any help will be appreci... more >>
XslTransform "Invalid Xml" Security Problem
Posted by Matthias Truxa at 7/9/2005 6:53:48 PM
Hello,
I've got a serious Problem from out of nowhere that I'm not able to solve.
Can someone please help me here?
I'm trying to instantiate a Xslt document build in as a resource using:
htmlTransformator = new XslTransform();
using (Stream mrs =
typeof(MyType).Assembly.GetManifestRe... more >>
Updating web.config file with a dll from an asp.net web applicatio
Posted by spai at 7/8/2005 10:23:02 AM
We have developed an asp.net web application which provides the user with a
form to allow them to update configuration settings in the web.config file as
well as other config files. The asp.net web page calls a c# dll to update
the config file.
When we do this we get an access denied error... more >>
Accessing a remote file over the network
Posted by Gopi at 7/8/2005 12:00:00 AM
Hi all,
I need to find the size of a file which is located on a remote unix box.I
have been given Samba mount acces for the shared folder through which i can
access the file. I am using Fileinfo object to find the attributes of the
file.When i use the Fileinfo object from a console application e... more >>
Forms authentication
Posted by Ben at 7/7/2005 2:56:01 PM
Hi,
I am currently developing a web site that will use "Forms" authentication. I
am having an issue in which the "Forms" authetication works only one time.
Any other session after that are redirected to the web forms that require
authentication, which results in an error, because the page i... more >>
Forms Authentication Expiration Problem
Posted by Prasad Dannani at 7/7/2005 12:00:00 AM
Hi Techies,
I am using Forms authentication for my asp.net i had given session time out
as 500
and also Forms time out also 500 even though its getting expired soon may be
4 minutes of Idleness its getting expired
see the forms auth configuration below
<authentication mode= "Forms" >
... more >>
authenticating access to files from ASP.NET
Posted by John Challis at 7/6/2005 10:25:05 AM
I want to restrict access to files (on local and remote servers) without
requiring users to log in to my ASP.NET application. The users are on an
intranet, anonymous access is disabled and Integrated Windows Authentication
is enabled.
Now, how can we determine if the current authenticated u... more >>
Connect to database on other computer
Posted by Chris Zopers at 7/6/2005 8:34:17 AM
Hello,
I host an ASP.NET application on a computer and from that computer, I
want to connect to a database on an other computer. When I place the
database on the same computer, everything works just fine, but when I
place the database on the other computer, I can't connect to it. I've
tried j... more >>
|