Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about Syntax
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01242375
Message ID:
01242390
Views:
11
To make your life easier, get some utility that will allow you to explore AD. For example, AdsiEdit http://www.computerperformance.co.uk/w2k3/utilities/adsi_edit.htm.

>In that code, I am attempting to add a new user to the Users in AD.
>
>Thanks,
>
>Patric
>
>>Does anyone know what the specifics are of the syntax below?
>>
>>Set objOU = GetObject("LDAP://OU=management,dc=hhccas,dc=com")
>>Set objUser = objOU.Create("User", "cn=SmithJohn")
>>objUser.Put "sAMAccountName", "SmithJohn"
>>objUser.SetInfo
>>
>>
>>In other words, in this line:
>>
>>Set objOU = GetObject("LDAP://OU=management,dc=hhccas,dc=com")
>>
>>what should I have in there if I am attempting to work with AD located on the 'hhccas' domain?
>>
>>I continue to get the error "A referral was returned from the server" and all I can find about that error indicates a syntax error (or improperly referencing the domain). Hence I wanted to get more info regarding what each segment of that line of code is for.
>>
>>Thanks,
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform