I'm using ASP to create a user in Active Directory and I'm getting the following error:
Active Directory error '80070005'
General access denied error
The error occurs on the "SetInfo" method call.
I have full rights to the Active Directory database and can manually set up a user.
Following is my code:
<%
' *** TEST USING LDAP ***
Set oContext = GetObject("LDAP://DC=mycompany,DC=com"
Set oUser = oContext.Create("user","CN=user temp"
oUser.Put "samAccountName", sUser
oUser.Put "givenName", "User Temp"
oUser.SetInfo
oUser.SetPassword "test"
oUser.SetInfo
%>
Thanks in advance!
Active Directory error '80070005'
General access denied error
The error occurs on the "SetInfo" method call.
I have full rights to the Active Directory database and can manually set up a user.
Following is my code:
<%
' *** TEST USING LDAP ***
Set oContext = GetObject("LDAP://DC=mycompany,DC=com"
Set oUser = oContext.Create("user","CN=user temp"
oUser.Put "samAccountName", sUser
oUser.Put "givenName", "User Temp"
oUser.SetInfo
oUser.SetPassword "test"
oUser.SetInfo
%>
Thanks in advance!