Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADSI Problem

Status
Not open for further replies.

GDX

Programmer
Jun 4, 2000
186
US
Hello, My problem is very simple. I am trying to create a user via ADSI (Active Directory Service Interface) I read a couple articles on ADSI and this is the code i ended up with...


<html>
<head>
</head>

<body bgcolor=&quot;white&quot;>
<%
Set DomainObj = GetObject(&quot;WinNT://domain&quot;)
Set UserObj = DomainObj.Create(&quot;userx&quot;, &quot;jdoe&quot;)
UserObj.SetInfo
Set UserObj = Nothing
%>
</body>
</html>

I have changed all the credentials for security reasons ofcourse but can someone tell me whats wrong? I get the following error in the Set UserObj line...

Active Directory (0x80004005)
Unspecified Error

Thanking you in advance. Gordon R. Durgha
gd@vslink.net
 
Looks OK except the &quot;userx&quot;
This should be the type of object you wish to create ... i.e. &quot;User&quot;, &quot;Group&quot;, etc...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top