Ask a Question related to ASP.NET Security, Design and Development.
-
Jos #1
security policy for many users
I am developing for an Intranet with about 100 users
(we do computer training).
We're running about 12 different ASP.NET applications.
4 of these applications require authentication.
Windows authentication is not an option, as for Windows
most of our users have a blank password (so it would
be too easy for one user to impersonate another).
For my secure applications all users will have their own
password, and it should be the same password for the
4 applications. They should have an option to change
their own password.
What will be the best policy to avoid duplicating code
and information about users and passwords?
My first thoughts were:
- to use a database with user names and (encrypted)
passwords
- to share the database code and functionality (checking
credentials, changing passwords) through a web service
- to call the web service whenever a user is logging on.
Is this a good path to follow?
Or can it be done with one single web.config file?
Any other suggestions?
--
Jos
Jos Guest
-
Company IT security policy is blocking users fromviewing FMS, even on port 80
Have you tried rtmpt (rtmp tunneled over http)? It is not the ideal solution, but a good alternative. -
Security Policy
What is the best way for me to achieve the following 1. Disable CD-ROM, Floppy & USB on client computers 2. Stop users from copying files from... -
Group policy and traveling users
Hello all, I have an issue with laptop users who take their laptops home, and group policies applied in the office. How do we deal with traveling... -
Local security policy
I have two local XP Pro machines that I need to restrict the user rights on. I have found the settings I want to apply in the local groups policy.... -
Error Security Policy.
just a guess...but try: web_lowtrust.config web_notrust.config web_hightrust.config that may be what the error is referring to, as far as... -
Kevin Brown #2
security policy for many users
Why not get passwords set for the domain? Why write
password and user id management into your web applications
when it is already supplied by the OS?
I don't mean to avoid the question but it seems to me you
are going about this the wrong way.
As for the question.
You would have to put the ids and passwords in some form
of storage and the DB is a good idea. Store the passwords
with one of the available one-way hash algorithms. As for
sharing the code to manage a web service means you'll have
to decide how to secure the web service. Also consider
whether you will support things such as expiring accounts,
expiring passwords, password complexity, etc. Also if you
call the web service with a plain text password it could
be a vulnerability issue. I'd seriously consider getting
windows passwords in a domain if possible.
>-----Original Message-----
>I am developing for an Intranet with about 100 users
>(we do computer training).
>We're running about 12 different ASP.NET applications.
>4 of these applications require authentication.
>
>Windows authentication is not an option, as for Windows
>most of our users have a blank password (so it would
>be too easy for one user to impersonate another).
>
>For my secure applications all users will have their own
>password, and it should be the same password for the
>4 applications. They should have an option to change
>their own password.
>
>What will be the best policy to avoid duplicating code
>and information about users and passwords?
>
>My first thoughts were:
>- to use a database with user names and (encrypted)
> passwords
>- to share the database code and functionality (checking
> credentials, changing passwords) through a web service
>- to call the web service whenever a user is logging on.
>
>Is this a good path to follow?
>Or can it be done with one single web.config file?
>Any other suggestions?
>
>--
>
>Jos
>
>
>
>.
>Kevin Brown Guest
-
Eric Newton #3
Re: security policy for many users
You could write a common class, shared via assembly throughout all the apps
for authentication purposes.
For the Windows auth, why not force a minimum password? It would make
things a little easier in some ways, all things being equal...
But I feel the best way would be to write a common class that encapsulates
the auth functions: [pseudo-C# code] ;-)
public class CommonAuthentication
{
public bool AuthenticateUser(string username, string password)
{ /* would return true if db has user and password matches */ }
public string[] GetUserRoles(string username)
{ /* would return a string array of user roles... not neccesary if not
using this feature */ }
public void ChangePassword(string username, string oldPassword, string
newPassword)
{
if( this.AuthenticateUser(username,oldPassword) == true )
// update password in database
}
}
then just wrap that class into its own project that all the other projects
reference, and you've got it.
HTH
--
Eric Newton
[email]eric@ensoft-software.com[/email]
C#/ASP.net Solutions developer
"Jos" <josnospambranders@fastmail.fm> wrote in message
news:uCH4sGcXDHA.2256@TK2MSFTNGP10.phx.gbl...> I am developing for an Intranet with about 100 users
> (we do computer training).
> We're running about 12 different ASP.NET applications.
> 4 of these applications require authentication.
>
> Windows authentication is not an option, as for Windows
> most of our users have a blank password (so it would
> be too easy for one user to impersonate another).
>
> For my secure applications all users will have their own
> password, and it should be the same password for the
> 4 applications. They should have an option to change
> their own password.
>
> What will be the best policy to avoid duplicating code
> and information about users and passwords?
>
> My first thoughts were:
> - to use a database with user names and (encrypted)
> passwords
> - to share the database code and functionality (checking
> credentials, changing passwords) through a web service
> - to call the web service whenever a user is logging on.
>
> Is this a good path to follow?
> Or can it be done with one single web.config file?
> Any other suggestions?
>
> --
>
> Jos
>
>
>
Eric Newton Guest



Reply With Quote

