Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adsi /asp
Message
From
29/03/2000 16:36:42
 
 
To
29/03/2000 13:08:28
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00352230
Message ID:
00352391
Views:
9
Is this code in your ASP? you should be getting an "object expected" error, becuase you forgot VBScript's Set keyword with your object assignments. FWIW, I find it helpful to test this kind of code in a VFP program first. Also, you realize you will be running into a security problem with this code in an ASP don't you? I've warned you of that in another thread- the _IUSR account, which is what ASP pages run under by default will not be allowed to add users because it does not have the rights. Giving the _IUSR account rights to do this is not a very smart thing to do. Again, I recommend moving this code to a VFP COM server, and configuring that server to impersonate an account with rights.

>Hello:
>
>I have created a simple test active server page that I want to create users/passwords etc. , here is my code
>oComputer = getOBJECT("WinNT://"+IMWEBSHEENA)
>
>lcUsername = "Sheena"
>lcFullname = "Sheena Perry"
>lcPassword = "chuckie"
>lcDescription = "Programmer Type"
>oNewUser = oComputer.Create("User", lcUsername)
>oNewUser.Setinfo()
>oNewUser.SetPassword(lcPassword)
>oNewUser.Fullname = lcFullName
>oNewuser. Description = lcDescription
>oNewuser.Setinfo()
>
>I have downloaded adsi sdk and installed on my NT server.
>
>However, when I run my asp page it isn't putting the entry into my user manager on my server. It also doesn't give me an error so
>I'm not sure where I went wrong.
>I just installed sdk under program files and it showed that adsi components were installed. I am the backup domain controller(BDC).
>Would this make a difference?
>
>Any guidance would be greatly appreciated.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform