|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
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).
|
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
Algebra
===
|
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > Auto- add user to ftp on iis 5.1? ADSI? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|