Hello I have created a script which runs from my IIS 5 server using full admin rights. I have recently been asked to set the manager attribute during user creation. Unfortunately I can not seem to find the correct format to assign to this field.
For LP = LBound(depts) to UBound(depts)
strADsPath = "
ldap://CN/=" & super & ",ou=Users,ou=" & depts(LP) & ",ou=" & site & ",ou=sites,DC=
domain,DC=com"
'Response.Write strADsPath
On Error Resume Next
Set oSuper = GetObject(strADsPath)
if (err.number = 0) then
Response.Write "Bound to bind to ADSI object " & strADsPath
Response.Write oSuper.ADsPath
oUser.Put "manager", oSuper.ADsPath
Response.Write Err.number%><br><%
oUser.SetInfo
end if
Next
Any thoughts would be greatly appreciated.