Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adsi /asp
Message
From
30/03/2000 07:48:04
 
 
To
29/03/2000 16:36:42
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00352230
Message ID:
00352627
Views:
11
Hi Erik:
Thanks for responding. I did have the set command in my code but must have excluded when I posted the thread. My error was invalid sytax.
I'm just doing some basic testing of this and just thought that maybe I didn't have the correct components installed on my nt server.
I thought that I might be missing some files but I can't find a source that tells me the exact files I need installed and where. I understand what you're
saying regarding security issues. Do you know if asdi/asp programmers reference guide shows samples of doing what you're suggesting,
creating a com to impersonate an nt account with rights? I really appreciate your input.

Sheena

>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform