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.