Ask a Question related to ASP.NET Security, Design and Development.
-
Scott Roberts #1
Forms Authentication adding new users programatically
How do you add new users programatically using Forms Authentication in
ASP.Net? There must be a way to do this besides editing the
web.config file by hand or attempting to modify the web.config file
using an XmlDataDocument.
This is a requirement I have to meet for a project Admin users must be
able to add new users. And since I'm using Forms Authentication to
bind the current user with roles stored in SQL server I'd hate to
abandon it.
Scott Roberts Guest
-
Programatically adding an HTTPHandler
When my custom control is dropped onto a web page at design time, I want an associated HTTPHandler reference to be automatically added to the... -
Programatically adding an Object Tag to a TemplateColumn?
Hi All, I am trying to add flash movie to a templatecolumn of my datagrid. The flash movie takes variables to play different sample mp3 tunes.... -
Redirecting anon users - Forms or Windows Authentication
I have an Intranet site that I'm trying to work out some authentication issues on. Eventually, I want all of our domain users to add the url for the... -
Adding <div> tag programatically
Hi All, I would like to add the <div> tag programatically from the code-behind of my aspx file. Basically, I would like to a table to this <div>.... -
Forms Authentication - "Deny users = ?" necessary
Thanks for your reply Hernan. I can't believe Authentication and Authorization are mixed... If I want to identify/authenticate a user (for... -
Raterus #2
Re: Forms Authentication adding new users programatically
You are going to need to put your users somewhere else, like SQL Server
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT03.asp[/url]
You could edit Web.Config theoretically, but realize that the second you do that, your Application will restart, and you'll lose all sessions.
--Michael
"Scott Roberts" <sroberts20740@comcast.net> wrote in message news:66646186.0406021238.3d214e6b@posting.google.c om...> How do you add new users programatically using Forms Authentication in
> ASP.Net? There must be a way to do this besides editing the
> web.config file by hand or attempting to modify the web.config file
> using an XmlDataDocument.
>
> This is a requirement I have to meet for a project Admin users must be
> able to add new users. And since I'm using Forms Authentication to
> bind the current user with roles stored in SQL server I'd hate to
> abandon it.Raterus Guest
-
Robert Wallström #3
Re: Forms Authentication adding new users programatically
You should put your users in a extern datasourc such as SQL servern or AD..
(If you use SQL-server, modell a data base wich connect users to groups..)
Then in your app. you could authenticate users against groups instead of
specific accounts..
This will result in that you dont need to do any changes in your app.(unless
you architecture of the app, changes) Instead you manipulate the users group
membership in your choosen datasource..
"Scott Roberts" <sroberts20740@comcast.net> skrev i meddelandet
news:66646186.0406021238.3d214e6b@posting.google.c om...> How do you add new users programatically using Forms Authentication in
> ASP.Net? There must be a way to do this besides editing the
> web.config file by hand or attempting to modify the web.config file
> using an XmlDataDocument.
>
> This is a requirement I have to meet for a project Admin users must be
> able to add new users. And since I'm using Forms Authentication to
> bind the current user with roles stored in SQL server I'd hate to
> abandon it.
Robert Wallström Guest



Reply With Quote

