Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Error: 234 Unable to Parse ADSI Path
Less likely but possible, when using dsFindPath, is that the current user is not logged on to the computer running the script with a domain account. It all depends on your DS policy/security settings.
This problem can sometimes be fixed by adding the server name to the LDAP path - "LDAP://servername/...." or by removing it in other cases. It all depends on what is causing the problem.
AddExtender("wwads34i.dll") AddExtender("wwwnt34i.dll") ;AddExtender("wwmap34i.dll") vuser= askline("SID Finder", "please enter the user's kerberos ID:", "kerberos-ID") vlist = dsfindpath('LDAP://GSNB01E', 'otherMailbox=GSKERB$%vuser%') vSID = dsGetProperty(vlist, "Assoc-NT-Account") message("","%vSID%")
NB: dsGetProperty works fine, dsSetProperty shows the error
The fact that you can get but not set properties and that you get the ADSI path error may be telling. The dsSetProperty function makes a query into the IIS schema by constructing the path to the properties schema information (other ADSI providers do not require this approach.) It does this in order to determine how to convert the third parameter of the function into an IIS native data type. However, the dsGetProperty does not need to do this as the property value is returned to the extender with type information.
All this indicates that there is a problem with accessing the schema. You can test your ability to access the schema by attempting to bind to "IIS://localhost/schema" with the account that was running your script. If you can not bind to and read the schema, you need to check into the schema's security settings.
Try:
bResult = dsIsObject("IIS://localhost/schema") if bResult sText = "Schema found" else sText = "Schema not found" endif message( "test", sText)
Article ID: W15041
File Created: 2007:07:12:09:57:48
Last Updated: 2007:07:12:09:57:48