469,356 Members | 1,947 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

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 1817
"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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Mario Rodriguez | last post: by
2 posts views Thread by Phil Townsend | last post: by
reply views Thread by Jeff Reed | last post: by
1 post views Thread by tangus via DotNetMonster.com | last post: by
2 posts views Thread by Jim in Arizona | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.