Impersonation Implementation Using ASP.NET

When running third-party software (for example, SQL Server®) there are times when it is necessary to use impersonation to perform Windows® authentication in an ASP.NET application.

In deployed applications, impersonated credentials are passed in from IIS. However, since impersonation operates on a per-thread basis, this can sometimes present problems when processing the MATLAB® Runtime thread in a multi-threaded deployed application.

Use the following examples to turn impersonation on and off in your MATLAB file, to avoid problems stemming from MATLAB Runtime thread processing issues.

 Turning On Impersonation in a MATLAB MEX-file

 Turning Off Impersonation in a MATLAB MEX-file

 Code Added to Support Impersonation in ASP.NET Application

Was this topic helpful?