Programmatic creation of FTP users

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Programmatic creation of FTP usersExpand / Collapse
Author
Message
Posted 11/19/2008 11:41:45 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 12/8/2008 10:47:55 AM
Posts: 7, Visits: 21
Our website is hosted on Server A. An instance of WS_FTP Server is running on Server B. The website has a feature to create new FTP users. When the website and FTP service were running on the same server, we achieved this using the command line utility iftpaddu.exe. Having moved the FTP server to a dedicated server this approach is no longer valid.

Can anybody recommend an alternative approach?

Thanks,
Simon
Post #48864
Posted 11/25/2008 10:32:09 AM


Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: Yesterday @ 4:18:02 PM
Posts: 37, Visits: 46
One way this can be done:

The user information provided thru the webpage on Server A, can be placed into a batch file that is being saved on Server B, Which can then be triggered by Windows Task Scheduler.

For example: User inputs his information on the Web site:

You can then echo this information from a batch file on Server A to the batch file on Server B

echo C:\Program Files\Ipswitch\WS_FTP Server\iftpaddu.exe -add -h hostname -u %1 -p %2 > \\server_b\user.bat

You should have a preconfigure Windows Schedule task to run the user.bat file.
 
On the same batch on Server A , you can also run the Schedule task on Server B assuming both machines are either XP or Windows 2003.

schtasks /run /tn TaskName [/s computer [/u [domain\]user /p password]]

Luis T.
Ipswitch, Inc.
Email Support: http://www.ipswitch.com/support/email_support.asp

Post #49008
Posted 11/26/2008 10:43:24 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 12/8/2008 10:47:55 AM
Posts: 7, Visits: 21
Thanks, I ended up using .NET remoting.

Simon
Post #49042
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Dave, Mark Singh, kevin r gillis, Jason Benton, Brandon Felger, Ben Henderson, Tripp Allen, Will Sansbury, Jason Williams, Hush, FTPplanet.com, LDW, Hugh Garber, WUP-PM, mmulryan@ipswitch.com, mswimm, Travis G.

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 7:26pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.031. 10 queries. Compression Enabled.