|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
ActiveDS (active directory) in ASP problem
i'm trying to use ActiveDS from asp and it's giving me this error.
Quote:
what i've checked (with no success) i've made sure the dll's on my machine and the server are the same (version). The dll is registered, values exist in the registry. There's code referencing it in global.asa. The iusr_mywebserver has permission to the dll and tlb file. The code also works from VB (with a little variation). Code:
BUGGING ASP CODE
'add to Active DS
set cont = server.createobject("ActiveDS.IADsContainer") '<-----this is the line that throws error
set oUser=server.CreateObject ("ActiveDS.IADsUser")'<-----this is the line that throws error
cont.getObject ("WinNT://" & domain & ", computer")
set oUser=cont.create("user", username)
oUser.SetPassword (password)
set oUser.AccountExpirationDate = expires
set oUser.Description=description
set oUser.EmailAddress=email
set oUser.FullName=fullname
set oUser.TelephoneNumber=phone
oUser.SetInfo
Code:
WORKING VB CODE
Dim cont As IADsContainer
Dim oUser As IADsUser
Dim v As Variant
sComputer = myComputer
Set cont = GetObject("WinNT://" & sComputer & ",computer")
Set oUser = cont.Create("user", sUser)
oUser.SetPassword (pass)
oUser.SetInfo
any advice on how to get rid of the error in asp? |
|
#2
|
|||
|
|||
|
Have you tried search the M$ website for ActiveDS and/or ASP 0177.
Generally you can find an answer there.
__________________
How can I soar like an eagle when I'm flying with turkey's? |
|
#3
|
|||
|
|||
|
i've looked for a while, and it doesn't seem to tell me anything that i didn't try
i'm still looking though |
|
#4
|
|||
|
|||
|
hey, i'm trying to help but I can't seem to find any documentation on this in vbscript, only vb.net...
can you point me to the right direction? |
|
#5
|
|||
|
|||
|
Try using:
set cont = CreateObject("ActiveDS.IADsContainer") Loose the Server.CreateObject Try that... Hope this helps! Sincerely Vlince |
|
#6
|
|||
|
|||
|
i too only saw VB code, but if vb can do it, so should asp be able to (the problem is setting up my server so that it does that
)http://msdn.microsoft.com/library/d...i_reference.asp |
|
#7
|
|||
|
|||
|
Quote:
well, got rid of the 177 error, now i have Code:
Microsoft VBScript runtime (0x800A01AD) ActiveX component can't create object: 'ActiveDS.IADsContainer' |
|
#8
|
|||
|
|||
|
hmm, maybe it's just me having an I-D-10-T error in my head
it's probably something really simple in windows settings, which i just overlooked. ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > ActiveDS (active directory) in ASP problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|