Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 8th, 2004, 04:23 AM
Zn4rK Zn4rK is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 1 Zn4rK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 sec
Reputation Power: 0
Exclamation Auto- add user to ftp on iis 5.1? ADSI?

Hi, my name is Alexander. I have problem, i want to add NT users to iis
Ftp. By filling a form. I have a code to add user to NT user to the SAM database.
But how should i do to add the ftp user?

ADSI or something should i user, right?


ADD NT USER TO THE SAM DATABASE:
Code:
<%
if request.querystring("ny")="user" then
user=request("user")
Fullname=request("namn")
pass=request("pass")
Set myComputer = GetObject("WinNT://zn4rk")
Set newUser = myComputer.Create("user", User)
newUser.SetPassword Pass
newUser.FullName = FullName
newUser.Description = "test user"
newUser.SetInfo
set myComputer=nothing
end if
%>


// Alexander

Reply With Quote
  #2  
Old July 9th, 2004, 01:30 AM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 29 m 58 sec
Reputation Power: 181
I think you're on the right track, but I don't know the answer myself.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #3  
Old September 1st, 2006, 05:47 PM
Algebra Algebra is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 3 Algebra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 48 sec
Reputation Power: 0
I am new to IIS.

I have a similar problem. I am new to ASP and servers. I also use IIS. Me and my brother are planning to buy a server soon, maybe offer some FTP file storage to users with certain costs. Soon, I will be building a registration form on my web page, and my problem is that, when the form is submitted, I need the form to complete a task by building access to an FTP account for the user that registered. I have only heard of ADSI a few days ago, and I am not sure how this FTP access information goes.

Anyone with some good answers, please feel free to post here. Thanks.

Reply With Quote
  #4  
Old September 1st, 2006, 06:47 PM
markoc's Avatar
markoc markoc is offline
Contributing User
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Nov 2003
Location: UK
Posts: 2,166 markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Weeks 21 h 31 m 35 sec
Reputation Power: 238
Auto- add user to ftp on iis 5.1? ADSI?

well if u haven't bought ur server or OS yet, why don't think about using win 2003 server and .net u'll have far more funtionallity available and security.
__________________
Hope this advise helps.

If so please show your appreciation by adding reputation points (click gauge image on top right of this post and score).

Reply With Quote
  #5  
Old September 2nd, 2006, 11:05 AM
Algebra Algebra is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 3 Algebra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 48 sec
Reputation Power: 0
lgebra

I was thinking about that. Yes Win 2003 server is pretty good. I know .NET has more security options etc.. But for now, maybe I will stick with ASP and see how everything goes. Alexander, I read your code above:
=======================
<%
if request.querystring("ny")="user" then
user=request("user")
Fullname=request("namn")
pass=request("pass")
Set myComputer = GetObject("WinNT://zn4rk")
Set newUser = myComputer.Create("user", User)
newUser.SetPassword Pass
newUser.FullName = FullName
newUser.Description = "test user"
newUser.SetInfo
set myComputer=nothing
end if
%>
=====================
Would you mind explaining me how it goes? and to which database you've connected it to. Also, you see the WinNT://zn4rk in your code? Is that your FTP main directory? If not, please tell me how I can implement this idea.

Thanks for reading.

Reply With Quote
  #6  
Old September 2nd, 2006, 11:06 AM
Algebra Algebra is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 3 Algebra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 48 sec
Reputation Power: 0
Algebra

===

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Auto- add user to ftp on iis 5.1? ADSI?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT