473,486 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Directory Security via ASP / Or Adding user to Win2000 users

Hello,

I am working on a document management system for a client. I am planning to
set up the system so that documents are protected, sort of.. A user has an
access level and based on that access level, a list of available documents
will display as an HTML page and the user can click a hyperlink to download
or view the selected document.

I am planning to handle this all through a SQL database and ASP..

What I would REALLY like to do, though, is protect a set of directories so
that a user could not just enter a URL and download a document without being
prompted for a username and password if he/she hasn't already logged in.

I have done something like this using AuthnetiX from Flicks Software, but
this current client is trying to create a solution "on the cheap", and so
I'd like to see if I can build the solution using the secuirty mechanisms
built into the O/S.

What I'm thinking is that I'll set up the directories and assign a group
access to each directory.. My question then is, can I add users to the
"Local Users and Groups" for Windows 2000 via ASP?

Thanks,

Rich
Jul 19 '05 #1
4 1947
"Richard Morey" <rw*******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
What I'm thinking is that I'll set up the directories and assign a group
access to each directory.. My question then is, can I add users to the
"Local Users and Groups" for Windows 2000 via ASP?


Yes you can. Start here: http://www.15seconds.com/focus/ADSI.htm

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #2
Hi..

Probably.. thanks for pointing those out for me..

Rich
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:bh*********@kcweb01.netnews.att.com...
Isn't this what you want to do (3rd and 4th link)?

Nov 27, 2001 - Learning ADSI - Part 2: Editing Users and Administering Groups

Oct 5, 2001 - Learning ADSI - Part 1: Adding Users To W2K

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

"Richard Morey" <rw*******@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP10.phx.gbl...
Hi..

Thanks for that link.. There are a lot of articles listed though. Can you
tell me which once I want to be looking at?

Also, it seems the titles on most of those articles refer to DOT NET

stuff,
but I'm just doing plain ASP as far as I know..

Thanks again,

Rich

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:bh*********@kcweb01.netnews.att.com...
"Richard Morey" <rw*******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
> What I'm thinking is that I'll set up the directories and assign a group > access to each directory.. My question then is, can I add users to the > "Local Users and Groups" for Windows 2000 via ASP?

Yes you can. Start here: http://www.15seconds.com/focus/ADSI.htm

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for

running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/



Jul 19 '05 #3
Hi Rich,

I had the same problem. I write the following script to add users to
a local group.

Sincerly,

Joerg

******
dim server, group,user

group= "localGroupName"
server= "pcName"
user = "domainuser"

Set obj = GetObject("WinNT://" & server & ",computer")

set oGroup = obj.GetObject("group", group)
oGroup.ADD "WinNT:" & "//Domain" & "/" & user
If Err.Number <> 0 Then
Response.Write "could not add user to group<br>"
Response.End
End if

oGroup.SetInfo

set oGroup = nothing
set obj = nothing
Jul 19 '05 #4
this is a decent application as far as that goes

www.aspprotect.com


"Richard Morey" <rw*******@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP10.phx.gbl...
Hi..

Thanks for that link.. There are a lot of articles listed though. Can you
tell me which once I want to be looking at?

Also, it seems the titles on most of those articles refer to DOT NET stuff, but I'm just doing plain ASP as far as I know..

Thanks again,

Rich

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:bh*********@kcweb01.netnews.att.com...
"Richard Morey" <rw*******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
What I'm thinking is that I'll set up the directories and assign a group access to each directory.. My question then is, can I add users to the
"Local Users and Groups" for Windows 2000 via ASP?


Yes you can. Start here: http://www.15seconds.com/focus/ADSI.htm

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running

IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/


Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
15176
by: James Allan | last post by:
Hello -- I'm trying to get SQL Server 2000 on a Windows 2000 Server to be able to query an Active Directory. We've got two domain servers one Win2000 and one Win2003. However, I'm having...
9
3682
by: Mario Rodriguez | last post by:
Hi people. I have a problem adding users to Win2003 active directory programatically. When I execute my app throws the following exception: .................The specified directory service...
2
4227
by: mattsh | last post by:
I am having some issues adding user logins to SQL Server. When I search for users in Active Directory from Security->Logins->New Login, I can search for and add users using the short name...
2
3167
by: Phil Townsend | last post by:
I have been attempting to persuade our systems admin staff to allow us to use integrated security by adding the aspnet user to SQL Server. Currently we are forced to use a connection string that...
0
2075
by: Jeff Reed | last post by:
I am experiencing the the problem outlined the below. Unfortunately, I am using WinXP and I not sure if I can apply the solution due to lack of security control Any feed back would be apreciated ...
1
3875
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry =...
2
5944
by: Jim in Arizona | last post by:
My goal, somehow, is to populate a dropdownlist with all the user names in active directory. I don't even know where to begin, really. I added a reference to System.DirectoryServices so I could...
18
23751
by: Arthur | last post by:
Hi All, I would like to get the name of the user given their networkID, is this something Active Directory would be useful for?(For intranet users) If so, can you please point me to some sample...
1
2234
by: nujcharee | last post by:
I am thinking about linking Oracle database to Access database but want to use Active Directory to control the access to mdb. Is this acheiveable? How?
0
7100
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7126
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4865
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.