Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Directory Security via ASP / Or Adding user to Win2000 users

Reply
Thread Tools

Directory Security via ASP / Or Adding user to Win2000 users

 
 
Richard Morey
Guest
Posts: n/a
 
      08-11-2003
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


 
Reply With Quote
 
 
 
 
Tom Kaminski [MVP]
Guest
Posts: n/a
 
      08-11-2003
"Richard Morey" <> wrote in message
news:%23$...
> 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/



 
Reply With Quote
 
 
 
 
Richard Morey
Guest
Posts: n/a
 
      08-13-2003
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:bhapo8$...
> 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" <> wrote in message
> news:...
> > 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:bh8n2b$...
> > > "Richard Morey" <> wrote in message
> > > news:%23$...
> > > > 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/
> > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Joerg
Guest
Posts: n/a
 
      08-14-2003
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
 
Reply With Quote
 
James Monroe
Guest
Posts: n/a
 
      08-22-2003
this is a decent application as far as that goes

www.aspprotect.com




"Richard Morey" <> wrote in message
news:...
> 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:bh8n2b$...
> > "Richard Morey" <> wrote in message
> > news:%23$...
> > > 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/
> >
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrading users/permissions etc from old win2000 to new winxp BertieBigBollox@gmail.com Computer Support 4 10-05-2009 09:13 AM
problem accesing Active Directory from an ASP.NET App when user has been authenticated via AD certificate mapping Sergio Lera via .NET 247 ASP .Net Security 1 04-06-2005 05:53 PM
Help me in making users/deleting users in active directory Sara rafiee ASP .Net 3 10-04-2004 01:35 PM
Help me in making users/deleting users in active directory Sara rafiee ASP .Net Web Controls 1 10-04-2004 12:00 PM
Problem with possible security risk on Win2000 Russ A+ Certification 4 07-13-2003 11:28 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57