Quantcast
Channel: CRM Development 論壇
Viewing all articles
Browse latest Browse all 10280

OrganizationServiceProxy and DefaultCredentials

$
0
0

Hi,

The SDK console examples requires the user to provide his/her password manually when authentication to MS CRM.

I would like to authenticate using AD, but without requiring the user to provide their password manually:

In MS CRM 4.0 this would typically have been:

            CrmService crmserv = new CrmService();
            service.Url = "http://<servername>:5555/mscrmservices/2007/crmservice.asmx";
            crmserv.CrmAuthenticationTokenValue = token;
            crmserv.Credentials =System.Net.CredentialCache.DefaultCredentials;
            return crmserv;

I cannot pass across the DefaultCredentials as usercredentials when instantiating the userCredentialsparameter.

using (OrganizationServiceProxy _serviceProxy = new OrganizationServiceProxy(organizationUri, homeRealmUri, userCredentials, deviceCredentials))

Thanks.



Viewing all articles
Browse latest Browse all 10280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>