Friday, 15 February 2013

c# - Can log in to on-premise organization -



c# - Can log in to on-premise organization -

it not typo. problem can log in. our crm server accessible via vpn, log into. then, run next code.

clientcredentials credentials = new clientcredentials(); string orgurl = "http://server/konrad01/xrmservices/2011/organization.svc"; organizationserviceproxy _serviceproxy = new organizationserviceproxy( new uri(orgurl), null, credentials, null);

it's brand new organization nil in it. when list e.g. scheme users, hits, apparently am able connect it. how?!

i've went through think of. removed net history, including not limited to, cookies. removed references server credential manager in command panel. disabled storage of credentials log in on rdp server resides. nada! persistent duck (type intended) still connects. how create not to connect?! (unless provide credentials, is.)

assumptions:

you have simple on-premise deployment. you using simple active directory authentication. the user running application has permissions in crm.

as didnt specify particular user in clientcredentials when application connects crm provides credentials of user running application.

that user has permissions in crm allowed authenticate , things.

to test seek running application user not have permissions in crm , see if still able connect.

further reading:

crm 2011 – authentication model authenticate users microsoft dynamics crm web services how can set clientcredentials?

c# login dynamics-crm-2011

No comments:

Post a Comment