I want to make a connection to a VC using the Active Directory credentials of a particular user. What is the best way to implement this?
I'm developing a .NET (C#) application that needs to make a connection to a VC. It also needs to retrieve all VMs this particular user has permission to on the VC.
Any guidence with this is greatly appreciated!!
1. You need to impersonate AD user, so that you c# code runs as another user
2. Next you will need to obtain windows authentication token
3. Use LoginbySSPI function to pass windows token as AD authenticated user
You can implement connecting to VC
with active directory credentials by first assigning the permissions to the
particular user/group in the domain. For this login to VC through VI Client,
right click on the domain name (the root), go to add permissions and add the
user/groups from your domain. This way you can assign any kind of permissions to
any user/group in your domain. Now your application can connect to VC using any
of the added users.
One more thing to add, this only
works if, during installation of VC, you have integrated the VC with active
Hope this info helps!
Thanks Folks! I'm starting to get it, however can someone please explain the SSPIHelper Class. I see reference to it and I'm not sure how this fits into the picture. Is this class available for download or are they custom classes that are built?