Video Screencast Help

ASDK - Windows Auth with Roles?

Created: 06 Aug 2012 • Updated: 06 Aug 2012

Hi Everyone,

I'm looking to create a commandline utity to assist with a major role out and have ran into a problem with DS 6.9.

We have Role Security enabled in the Deployment Solution and want to call the ASDK functions via a web service, this works without issue but the complication is I do not want to hardcode the username and password or prompt the user to enter it.

It seems this can work with the role security disabled but then that obviously opens up other security issues, particularly when we have Desktop Support and Helpdesk using the same console.

Does anyone have a way to use Roles with Windows Authentication?

ComputerManagementService computerManagement = new ComputerManagementService();

computerManagement.Credentials = CredentialCache.DefaultCredentials;

DSCredentialsHeader DSCred = new DSCredentialsHeader(); <--- Don't want to specify credentials, want to use Windows Auth

DSCred.Username = "some account";

DSCred.Password = "some password";

computerManagement.DSCredentialsHeaderValue = DSCred;