473,653 Members | 3,000 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating User Accounts with or without Active Directory

<REPOSTED>

Guys,

I need to build a web intranet application that can automatically
create a user account when a new user registers on the site. The user
account will be on the web server, member of the guests group (or some
other limited group), and get read permissions to a special folder.

I've tried playing with Active Directory on my local box, but I'm
running Win XP Pro, not Win Server 2003 so I don't think its available.
My production server will probably have access to it however.

So my questions are:

Can I use Active Directory for this sort of thing? I'm looking for a
code example for creating a user account, assigning permissions, et.

If I can't, what was the old ASP, VB 6 way of doing this? I'm sure
theres an older interface out there somewhere.

Thanx!

J'son

Nov 19 '05 #1
5 2333
"J'son" <si*******@hotm ail.com> wrote in news:1114451208 .266974.164320
@f14g2000cwb.go oglegroups.com:
I've tried playing with Active Directory on my local box, but I'm
running Win XP Pro, not Win Server 2003 so I don't think its available.
My production server will probably have access to it however.

So my questions are:

Can I use Active Directory for this sort of thing? I'm looking for a
code example for creating a user account, assigning permissions, et.
There is a standalone version of active directory ADAM. You can give that
version a try - not sure if it runs on XP though.

If I can't, what was the old ASP, VB 6 way of doing this? I'm sure
theres an older interface out there somewhere.


Typically just a database table with a couple columns (i.e.
Username/Password, GroupID, etc).

Authentication should be done via the Forms Authentication classes - there
is no need to roll your own authentication : )

--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2
If this is an intranet application, why does it need to create accounts at
all? Do the users not already have domain accounts, and can't the read
permissions on the folder be granted based on membership in a domain group?
"J'son" <si*******@hotm ail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
<REPOSTED>

Guys,

I need to build a web intranet application that can automatically
create a user account when a new user registers on the site. The user
account will be on the web server, member of the guests group (or some
other limited group), and get read permissions to a special folder.

I've tried playing with Active Directory on my local box, but I'm
running Win XP Pro, not Win Server 2003 so I don't think its available.
My production server will probably have access to it however.

So my questions are:

Can I use Active Directory for this sort of thing? I'm looking for a
code example for creating a user account, assigning permissions, et.

If I can't, what was the old ASP, VB 6 way of doing this? I'm sure
theres an older interface out there somewhere.

Thanx!

J'son

Nov 19 '05 #3
Imagine this scenario... a small "English as 2nd language" school wants
to give students space on their web server to post html files (each
student can have a custom webspace).

When a new user registers with the site (and is confirmed to be a
student), the application is to create a new folder under the main
virtual root for their use:

http://www.mysmallscho ol.com/webspaces/<usernamehere >

So the student can manage files in this new folder, a new FTP virtual
directory is set up pointing to the above folder on the web server. And
finally, the student himself is given an account on the web server with
only read/write permissions to that specific FTP directory. The
application is to handle all this.

I have informed the client that I could create a special upload page
that would be much more secure (and probably easier to implement), but
they want it done this way so that students can use
FrontPage/Dreamweaver to publish their files via FTP. Grrrr....

Whew! See my dilemma? Hence my questions about Active Directory or any
other security namespace..

Thanx!

J'son

Nov 19 '05 #4
What you've described is not really an "intranet" application. If it had
been, the students would almost certainly have user accounts prior to
connecting to the application.

That said, what you want to do is certainly possible, and it can be done in
the same way on both Windows XP and 2003. There's a sample for adding a new
local user via System.Director yServices at
http://support.microsoft.com/default...b;en-us;306271.
Unfortunately, the 1.x versions of the.NET Framework don't include
functionality for manipulating file and folder permissions. However, you
can find a managed wrapper for the required Windows API calls at
http://www.gotdotnet.com/Community/U...f-e0705af065d9.

HTH,
Nicole

"J'son" <si*******@hotm ail.com> wrote in message
news:11******** *************@l 41g2000cwc.goog legroups.com...
Imagine this scenario... a small "English as 2nd language" school wants
to give students space on their web server to post html files (each
student can have a custom webspace).

When a new user registers with the site (and is confirmed to be a
student), the application is to create a new folder under the main
virtual root for their use:

http://www.mysmallscho ol.com/webspaces/<usernamehere >

So the student can manage files in this new folder, a new FTP virtual
directory is set up pointing to the above folder on the web server. And
finally, the student himself is given an account on the web server with
only read/write permissions to that specific FTP directory. The
application is to handle all this.

I have informed the client that I could create a special upload page
that would be much more secure (and probably easier to implement), but
they want it done this way so that students can use
FrontPage/Dreamweaver to publish their files via FTP. Grrrr....

Whew! See my dilemma? Hence my questions about Active Directory or any
other security namespace..

Thanx!

J'son


Nov 19 '05 #5
Nicole,

You rock.. thanx!! This is definitely going to help out..

Take care,

J'son

Nov 19 '05 #6

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

Similar topics

0
1806
by: Wayne Gibson | last post by:
Hi all, Please ignore the other post.. The cat jumped on the machine and sent it before I could stop it!! Was wondering if anybody has expericence this problem.. I am writting an application in C# using windows forms, to create windows user profiles and then updating the registry information for the new profiles. I have managed to create the user successfully and thought that I was
8
3990
by: mcmg | last post by:
Hi, I have an asp app that works fine on a windows xp machine but does not work on a windows 2000 server. I have the following code in my global.asa: <OBJECT RUNAT=Server SCOPE=SESSION ID=MyID
7
2388
by: Jaydeep | last post by:
Hi, Anybody knows how to create virtual directory programmatically under root directory ofcourse from code-behind. I am developing web-based application where I need to create a folder and making this folder as virtual directory in IIS. I know in ASP how to do it. Set objIIS = GetObject("IIS://localhost/W3SVC/1/Root") objIIS.Create("IISWebVirtualDir", strVirtualDirectoryName)
0
262
by: J'son | last post by:
Guys, I need to build a web intranet application that can automatically create a user account when a new user registers on the site. The user account will be on the web server, member of the guests group (or some other limited group), and get read permissions to a special folder. I've tried playing with Active Directory on my local box, but I'm running Win XP Pro, not Win Server 2003 so I don't think its available. My production...
1
2551
by: J. Shane Kunkle | last post by:
I would like to create a web form that gives administrators the ability to create and modify windows users on our server. The problem is that I am having trouble finding examples of programmatically creating/modifying windows user accounts - does anyone know of a .net library or windows API that does this? We do not currently use active directory on this server - however I believe ADSI has some support for this so if that's the only...
6
2408
by: Leo_Surf | last post by:
Hello, I need your help adding user in Active Directory from ASP.net website. Could any one provide me the complete code for the html page. As this is my curriculam project and I dont have any Idea about ASP.net Please Help Thanks in Advance.
4
4654
by: pjdouillard | last post by:
Hello all, Here is the context of my problem: We have an ASP.NET 1.1 application that has its own application pool setup and that runs under the identity of a NT Domain service account (this is for security reason when accessing databases). We use the Integrated Windows authentication to authenticate users, and we have setup the Web.config file to authenticate those users against 3 NT Domain Global Groups. Everything is working fine...
9
15516
by: webrod | last post by:
Hi all, how can I check a user/password in a LDAP ? I don't want to connect with this user, I would like to connect to LDAP with a ADMIN_LOG/ADMIN_PWD, then do a query to find the user and check the password. The thing is I can't access the password attribute to compare with the user's password provided.
1
3504
by: Michael Howes | last post by:
I would think this would be very, very easy but in the 50 searches I've done I haven't found anything. If our application requires login and that user/password be a local windows account or more detailed, a user that has been added to the Power Users group that is either a local account or a active directory account how do I authenticate? I've found code that seems to do this against Active Directory
0
8370
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8283
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8811
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8470
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8590
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4147
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.