Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords:
Error 1068. The server is unwilling to perform operationWhat am I doing wrong?
My code is:
dssetCredent("administrator", "password") sObjectClass = "user" sAdsiPath = StrCat ("LDAP://CN=Users,DC=mydomain,DC=parentdomain,DC=com") sAdsicn = StrCat ("LDAP://CN=", FullName, ",CN=Users,DC=mydomain,DC=parentdomain,DC=com") sObjectPath = dsCreateObj (sAdsipath, sObjectClass, FullName) sProperty = "sAMAccountName" dsSetProperty (sObjectPath, sProperty, UserName) sProperty = "sn" dsSetProperty (sObjectPath, sProperty, LastName) sProperty = "givenName" dsSetProperty (sObjectPath, sProperty, FirstName) sProperty = "initials" dsSetProperty (sObjectPath, sProperty, Initial) sProperty = "description" dsSetProperty (sObjectPath, sProperty, Comments) sProperty = "displayName" dsSetProperty (sObjectPath, sProperty, FullName) sProperty = "name" dsSetProperty (sObjectPath, sProperty, Name) sProperty = "scriptPath" dsSetProperty (sObjectPath, sProperty, "logonscp.bat") dsSetObj (sObjectPath)
I produce the 1068 error this morning by not having the "cn=" as part of the 3rd parameter to the dsCreateObj function.
It would be nice to have a little more helpful error message,I admit. Unfortunately, the underlying ADSI components do not provide a lot of useful error information to help in creating error messages. The stuff you found in the ini file is about all we have to work with.
Article ID: W15040
File Created: 2002:09:05:13:49:16
Last Updated: 2002:09:05:13:49:16