Ask a Question related to ASP.NET Security, Design and Development.
-
Pascal Gineste #1
Impersonate by code and printers ?
We want to convert an excel file to a pdf file using a PDF printer
driver.
This uses a Postscript printer driver with a redirected port
"PDFCreator sur Ne00:"
to print with asp.net; i impersonate with code with logonuser and
duplicatetoken (i tried also duplicatetokenex with primary token and
also
SecurityDelegation).
the user (Usr1) i use to impersonate is administrateur of the serveur
and he can
access the directory where the excel and pdf will be generated.
the excel file is generated correctly (with OleDb and configuring
dcomcnfg)
however, after impersonating, i reopen the excel file (with OleDb) and
i
execute :
Workbook.PrintOut(1, iNbPages, 1, false, sNomImprimante,missing,
missing,missing);
-> it blocks if the user i mention (Usr1 of domain Domn1) during
impersonation by code is not logged
in on the server.
however, if Usr1 is logged on on the server, the pdf file is generated
correctly.
The problem is that i don't want the web server to be logged on always
with
this user account usr1.
I have found a temporary solution (not very secure .....) : if i start
aspnet_wp.exe with Domn1\Usr1, it works correctly and i don't need
anymore
to be logged on the server and i also don't need anymore to
impersonate
by code as usr1.
Have you got any idea ?
Thanks in advance
Pascal Gineste Guest
-
Impersonate + AD
Hi, I've got a difficult situation... Is a website that runs on IIS with Anonymous Authentication, the tag <identity impersonate="false"> on the... -
Asp.net impersonate
I don't think impersonation loads the user profile of the account being impersonated. If you think about it, that would make impersonation very... -
DirectoryEntry Impersonate or WindowsIdentity Impersonate?
Another security question. Our project interfaces with the Active Directory. To satisfy the security issues, we have a couple options when we talk... -
fh10 & non-postscript printers vs. postscript printers
Thanks in advance for any help you can offer. I am running Freehand 10, on Windows XP. I?m unable to print raster images correctly from fh10,... -
Impersonate code sample?
Here is what I do in order to use Windows security: 1. Set up IIS to use the domain account you have set up as the anonymous user 2. Set up...



Reply With Quote

