When role security is enabled in the DS console, any attempt to authenticate through the ASDK using C# code fails. The following error is returned:
An exception occoured System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Error: Could not authenticate Deployment Solution user. No credentials were provided for authentication. ---> Altiris.ASDK.ASDKException : Error: Could not authenticate Deployment Solution user. No credentials were provided for authentication.
The problem appears to be an issue within the DS API that is used to do the authentication. This has been pushed to the Deployment Server development group for a resolution. As of this KB modification, the plan is to have a fix done within the week on the Deployment Solution software. We do not yet know the method of distribution for a fix to this, this will be forthcoming.
This issue has been fixed in DS 6.8 SP2.
There appears to be several functions that are affected because of this bug. MoveComputerByGroupName and CreateJobScheduleByName are two known functions to be affected by this situation.
The work around is to use the CreateJobSchedule function as it is not affected by this particular problem. The following snippet of code can be helpful to show the implementation that should be used: