Trying to run a scheduled task that uses an AD account to copy files to a Netware volume fails


I had problems trying to copy files from a local drive on a computer to a Netware volume using a normal scheduled task. Basically whilst logged on with a NDS and AD account you cannot write to a Netware volume. This is because the authentication used by the scheduled task is AD when Netware is expecting NDS authentication.
Trying to work around this I wrote a batch file that used the Net use command to attach to a Netware volume as a different NDS account. This was so that the task ran as a NDS user that we could define had properties that didn’t prompt for a password change.
Unfortunately when you try to connect to a volume using a second NDS account you receive the error:
“System error 1219 has occurred.
Multiple connections to a server or shared resource by the same user,
using more than one user name, are not allowed. Disconnect all previous
connections to the server or shared resource and try again.”

After some research I found that you can only be authenticated to the NDS Tree once unlike AD where you can ‘Run As’ under a different AD account.

In the end I just created a batch file that the logged on user manually runs so that their credentials are used instead.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s