473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Automate the creation of Users and a FTP Site

We have a project that will require the almost realtime (every 5
minutes) creation of user accounts and a FTP site for each of them. I
would like to write a VB.Net application to do this. This can be a
standard desktop application.

What is the best way to accomplish this?
- Create a user by inserting a "NewUser" into active directory?
- How do I identify a folder as the FTP folder for that new user?

Any ideas or reference material would be appreciated.

We plan to use W2k Server and IIS5 but that can change if needed.

Thanks in advance
Jon
Jul 21 '05 #1
3 1952
Hello Jon,

Thanks for your post. As I understand, you want to programmatically create
a user and a FTP site. Please correct me if there is any misunderstanding.
I now share the following information with you:

1. >> - Create a user by inserting a "NewUser" into active directory?

The Microsoft .NET Framework includes a System.DirectoryServices namespace
which contains classes to interact with and manipulate the directory from
within managed code and allow you to access any ADSI provider, including
Active Directory. The following article in codeguru contains sample code to
add a user into AD:

Accessing Directory Services
http://www.codeguru.com/cs_network/AccessDirServ.html

2. >> - How do I identify a folder as the FTP folder for that new user?

IIS provides scripts to create FTP Virtual Server and Directories. For
Windows 2000, you can execute MKFTPSITE.VBS
(%SystemDrive%\InetPub\AdminScripts\MKFTPSITE.VBS) from within your .NET
application, while it is IIsFtp.vbs
(%SystemDrive%\Windows\System32\IIsFtp.vbs) for Windows Server 2003.

IIS Sample ADSI Script to Create FTP Virtual Servers
http://support.microsoft.com/?id=247364

IIS Sample ADSI Script to Create FTP Virtual Directories
http://support.microsoft.com/?id=254808

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2
Thanks for your reply.

I have read thru those scripts and understand what they are doing. Is
there any reason that I can not translate that code into VB.Net and
add it to our WinForm application?

If you would know of any examples that are already in vb.net that
would be great.
ti******@online.microsoft.com (Tian Min Huang) wrote in message news:<8k**************@cpmsftngxa07.phx.gbl>...
Hello Jon,

Thanks for your post. As I understand, you want to programmatically create
a user and a FTP site. Please correct me if there is any misunderstanding.
I now share the following information with you:

1. >> - Create a user by inserting a "NewUser" into active directory?

The Microsoft .NET Framework includes a System.DirectoryServices namespace
which contains classes to interact with and manipulate the directory from
within managed code and allow you to access any ADSI provider, including
Active Directory. The following article in codeguru contains sample code to
add a user into AD:

Accessing Directory Services
http://www.codeguru.com/cs_network/AccessDirServ.html

2. >> - How do I identify a folder as the FTP folder for that new user?

IIS provides scripts to create FTP Virtual Server and Directories. For
Windows 2000, you can execute MKFTPSITE.VBS
(%SystemDrive%\InetPub\AdminScripts\MKFTPSITE.VBS) from within your .NET
application, while it is IIsFtp.vbs
(%SystemDrive%\Windows\System32\IIsFtp.vbs) for Windows Server 2003.

IIS Sample ADSI Script to Create FTP Virtual Servers
http://support.microsoft.com/?id=247364

IIS Sample ADSI Script to Create FTP Virtual Directories
http://support.microsoft.com/?id=254808

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #3
Hi Jon,

Thanks for your response. We are able to translate VB script code to VB
.NET and add it to .NET application. It needs some work for the
translation, so I suggested to execute .VBS directly.

If you have any problems regarding VB code translation, I recommend you the
following newsgroup:
microsoft.public.dotnet.languages.vb

Please feel free to let me know if any futher is needed.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #4

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

Similar topics

10
by: Geoff Cox | last post by:
Hello Is it possibel to automate the access time allowed to a folder? I am using .htpasswd etc and would like to give say 0.5 hour access to users so that they can sample documents available on...
2
by: David Fickbohm | last post by:
People, I am trying to determine the creation date of files in a folder. I am using the following code to find the folder and confirm that files exist in the folder. If someone could give me an...
4
by: Chris via AccessMonster.com | last post by:
I have the challenge of needing to automate table creation. It doesn't end there the tables have to be created from one table that looks something like this... Email ...
0
by: Pluton | last post by:
Hello, I would like to know if you are informed of one (or several!) good book, document (memory, tutorial, etc...) or site concerning the creation of controls? I am rather interested in...
1
by: Les Dunn | last post by:
I have a C++ application that I have built using MS VC++ .NET. I would like to set it up/convert it for multiple users to run it from the web. I have posted this to the...
3
by: Jon Gross | last post by:
We have a project that will require the almost realtime (every 5 minutes) creation of user accounts and a FTP site for each of them. I would like to write a VB.Net application to do this. This...
15
by: Karl | last post by:
Hi all, I regularly use FTP to place Self Extracting Zip files on the web for remote users to update their datafiles. Works very nicely. I have automated the creation of the initial zip file (...
0
by: amg | last post by:
I'm looking for a way to automate the creation of an ODBC System DSN for an Oracle driver (Oracle client 10g). Any help (scripts, pointers, sample code) will be greatly appreciated. Thanks,
0
by: vasudevram | last post by:
Hi group, xtopdf: PDF creation / conversion toolkit: alpha release of v1.3 This is actually a somewhat preliminary announcement, but may be of interest to developers / users who know Python...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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...
0
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...

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.