all groups > asp.net security > december 2006
Filter by week: 1 2 3 4 5
accessing membership DB from windows (not ASP) app
Posted by David Thielen at 12/31/2006 5:10:00 PM
Hi;
When we create the membership DB we have to create the admin user in it in
our setup program. Otherwise, there is no way for an admin to get in our
ASP.NET app and create additional users.
What we have works unless the user first selects the wrong database for
which database is the m... more >>
Writing to Application Event has a problem
Posted by David Thielen at 12/30/2006 10:13:01 PM
When my ASP.NET app writes to the event log in Windows 2003 I get this as the
event:
The description for Event ID ( 0 ) in Source ( Windward Portal ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote comp... more >>
How do I run using Windows Identity (Windows 2003)
Posted by David Thielen at 12/30/2006 8:01:01 PM
Hi;
This appears to be working but I want to make sure I am doing it right.
I want to be able to run where it passes my Windows Identity to my ASP.NET
app. But I want the ASP.NET app running as whatever user is the default for
that - NOT as the client user.
What do I set?
In IIS Aut... more >>
Who is may ASP.NET app supposed to run as?
Posted by David Thielen at 12/30/2006 1:47:00 PM
Hi;
My ASP.NET app (on Windows 2003) is running under IUSR_SERVERNAME. Is this
the correct user for strictest security? I thought best was "NETWORK SERVICE"
or something like that.
And do I need to set this when installing the app? I don't think I am
specifying the user to run under anyw... more >>
Getting share & file permissions
Posted by David Thielen at 12/30/2006 11:06:00 AM
Hi;
Ok, I've almost got my system to handle opening files using any uname/pw
setup. One item remains.
If a share and file is set to allow "Everyone" then I want to allow any user
to open it. This requires either:
1) Is there a way to get the access rights for a share and for a file in the... more >>
Asp.net 2.0 Login Controls that Authenticate NetworkUserName & NetworkPassword
Posted by wardemon at 12/29/2006 6:14:34 AM
Hi,
I was wondering if there are any samples that uses the new ASP2.0
Login Controls which authenticates NetworkUserName / DomainName /
NetworkPassword ?
Both on workstation and actual network domain environment.
Thanks,
Henry :)
... more >>
Disable FORMS AUTHENTICATION selectively in 2.0
Posted by Ben at 12/28/2006 9:20:06 AM
Hi,
I have implemented a .NET 2.0 app which uses Forms Authentication, sets
a cookie upon succesful validation from DB etc. Everything works as
expected and all pages go to the login page before being sent to the
requested page etc.
Now the requirements have changed and I need to allow certai... more >>
Windows Auth Problem
Posted by John at 12/27/2006 5:29:28 PM
I have an intranet site that uses Windows Authentication. It is open to all
domain users. When I attempt to hit the site it asks me for my credentials.
I give it the same domain user name and password I used to log into Windows
and it lets me in. It is my understanding that if I am already ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Forms Based Authentication Issue (VIEWSTATE) Login Form On Non Protected Page
Posted by Kyle Peterson at 12/21/2006 8:23:31 PM
Hi,
I am doing Forms Based Authentication using the built in tools of .NET.
Authenticating off a database with some code a wrote and using login.aspx,
web.config, etc etc... the usual deal..
I have it all working fine and pages I want to protect show a login page
before being logged in to.
... more >>
XmlUrlResolver not working right
Posted by David Thielen at 12/21/2006 5:16:00 PM
I have a test http url that allows a connection from any domain user.
I am using the following code to test access to it:
XmlReaderSettings readerSettings = new XmlReaderSettings();
readerSettings.ProhibitDtd = false;
readerSettings.ValidationType = ValidationType.DTD;
XmlUrlResolver resolver... more >>
Weirdness in LogonUser
Posted by David Thielen at 12/21/2006 4:20:01 PM
If I call
IntPtr tokenHandle = new IntPtr(0);
bool returnValue = LogonUser("dave", "windward", "bogus",
LOGON32_LOGON_NEW_CREDENTIALS, LOGON32_PROVIDER_DEFAULT, ref tokenHandle);
The returnValue == true and I can successfully create a WindowsIdentity from
the passed in tokenHandle, impers... more >>
web.config protecting mp3 or wav files
Posted by Godzilla at 12/19/2006 2:56:36 PM
Dear all,
I have been reading some example on how to protect a folder via
web.config file. The question is that I wish to protect an audio
directory which contains various audio files (mp3, wav, mov, etc.) and
the web.config folder protection does not protect these file format.
How am I going... more >>
How to login with https
Posted by ad at 12/17/2006 12:00:00 AM
I have used asp.net to develop asp.net application.
I want to use https with login page, the others with http.
How can I do?
... more >>
Reading a file in my ASP.NET app
Posted by David Thielen at 12/15/2006 3:33:00 PM
Hi;
I had assumed that what I am asking here was a common request - but I am not
finding anything on this.
In my ASP.NET app a user can enter an xml file that we then pull in as data.
Needless to say we don't want them able to get the
\\hr\payroll\executive_salaries.xml - unless it is th... more >>
accessing SQL membership provider from a non asp.net application
Posted by cc at 12/14/2006 12:25:47 AM
Hi,
I'd like to access the information in a membership provider from
another application. Currently I have an ASP.NET 2.0 application in
which I use SQLMemnershipProvider. Everything works fine within the
ASP.NET and I may use constructs like Membership.GetUser("name") when I
need to access t... more >>
User.Identity.IsAuthenticated and requireSSL=true
Posted by TH at 12/12/2006 2:08:02 PM
Hi All
If I set an ASP.NET 2.0 site to forms authentication mode with
requireSSL=true, and I log in though https, then as soon as I swap back
to http mode, User.Identity.IsAuthenticated becomes false again and I
lose all the previous Identity information. Can anyone tell me how I'm
supposed t... more >>
Securing Webservice
Posted by Bob at 12/12/2006 12:00:00 AM
Hi,
I am new to web admin and security.
Made a certificate server out of the development Win2k server and created a
root certificate.
The same machine is also the web server for now.
Updated the Web site directory properties to require SSL
When I query the site from a browser on the LAN it bri... more >>
How to publish ASPNET web application locating the app files on shared folder
Posted by milen.elkin NO[at]SPAM gmail.com at 12/11/2006 3:36:31 AM
Hi,
I am trying to publish this ASP.NET 2.0 application on IIS 6.0, on a
2003
server. When I publish it on a local drive, it is OK. When I publish it
on a
file share on file server in the same domain, and try to run it, it
throws
this exception:
//--------Begin
Security Exception
Descr... more >>
web app service accounts
Posted by ryan.mccutchen NO[at]SPAM gmail.com at 12/10/2006 10:34:46 PM
I am looking for some feedback on an approach and if anybody has some
documentation to point me to that would be great....So here is the
scenario:
I have 2 .net apps on running on the same web server. Both apps have
databases on the same database server. (web and database are 2 separate
boxes... more >>
ASP.NET Login Control using appservicesDB for Membership, Roles and Users RUSH!!!
Posted by KT at 12/10/2006 4:15:17 PM
Okay, I'm using the appservicesDB for users, etc. I understand how to use
the web tool to add users, roles, etc.
Has anyone figured out how to do a mass users import into this database
using SQL? I need to load over 300 user accounts and simply do not want to
do this one at a time using the ... more >>
cookie
Posted by RicercatoreSbadato at 12/10/2006 10:18:05 AM
is it possible for a persone to create a cookie client side ?
for example my site wants a certain cookie to enter in some sections.
is it possible for a person to create that cookie on his computer ?
... more >>
path to aspnet_regiis
Posted by David Thielen at 12/9/2006 4:01:00 PM
Hi;
In our installer (we use WIX so the code has to be C++, not C#) we need to
call aspnet_regiis to encrypt the connection strings in web.config. I have
three questions about this:
1) What registry entry can we use to determine the location of
aspnet_regiis? As not everyone installs to ... more >>
Cannot encrypt custom section in web.config
Posted by mnowosad at 12/7/2006 7:45:00 PM
This problem has become a "show-stopper" for us.
I have defined a custom section for my web application that contains
sensitive data. Because of that, I want to have it encrypted in the same way
I encrypt the "connectionStrings" section using the ASPNET_REGIIS tool.
The problem is that I get... more >>
Kerberos Delegation
Posted by Scott Elgram at 12/7/2006 9:53:30 AM
Hello,
I'm not sure if this is the right forum for this question but it is
security related so hopefully someone in here can help.
I have two servers,
Web01: Windows 2k Adv. Server running IIS 5.
Sql01: Windows 2k Adv Server Running SQL 7
I am trying to get user cre... more >>
Login Control Security HELP
Posted by KT at 12/6/2006 10:14:42 AM
I am using the login control and need to know how to setup the pages within
the site to only be accessible after logging in.
I'm have the settings below in my web.config and it works and only allows
users in Admin roles. The problem is if I type in the address
http:/localhost/test/main.aspx i... more >>
asp.net tell from code if anonymous access is enabled on server?
Posted by Mad Scientist Jr at 12/6/2006 10:10:20 AM
Can someone post an example (preferably framework 1.1, vb.net but c#
ok) of how to tell whether anon access is enabled or disabled in IIS?
Thanks
... more >>
A Question on RoleManager-- Persistant Cookies doesn't seem to be working
Posted by JP at 12/5/2006 8:32:27 AM
Hi All,
Please find below a snippet from my Web.config
<roleManager enabled="true" cacheRolesInCookie="true" cookieTimeout="30"
cookieSlidingExpiration="true" cookieName=".ASPROLES"
createPersistentCookie="true" cookiePath="/">
My expectation was that for a user session, any calls to Roles... more >>
SqlMembershipProvider vs. transactions!
Posted by mehdi at 12/2/2006 5:17:56 AM
Hi folks,
I've been asking some ASP.NET Membership questions here and there for
the past 8 days (or so) over and over again. But surprisingly, it seems
that no one takes the Membership/role providers seriously - AFAIK. I've
been in a fog for the past week, unfortunately. This is my last try to
... more >>
Integrated Authentication with SSL
Posted by vic at 12/1/2006 10:09:37 AM
Hi,
I’ve got an ASP.NET 2.0 web application that requires SSL. In addition, the pages are configured to use Integrated Windows Authentication. I am having a problem getting automatic authentication to work for internal network users. If they try to access the page using an internal server name in... more >>
|