c# - "TFTP: can't read from local file.." error seen for windows impersonated admin account.. -
here info may in finding root cause mentioned issue.
pc setup:
- set workgroup setting.
- contains both local standard user , local admin accounts.
case: 1. run software application under standard user account admin impersonation. 2. contains restricted folder accessible local admin accounts , not standard user security reasons. 3. application code written in c#.
problem: when system32 tftp.exe invoked through application process.start(), getting error "tftp: can't read local file..", local file in restricted folder.
observation:
when following statement used impersonation: (logonusera(username, domain, password, logon32_logon_new_credentials, logon32_provider_default, ref token) != 0)
the application cannot access restricted folder (why? impersonation admin account.)
but, when (logonusera(username, domain, password, logon32_logon_interactive, logon32_provider_default, ref token) != 0) used, application can access folder, but, tftp.exe throws above mentioned error can't read file.
when main application invokes tftp.exe through process.start(), starts process. impersonation lost when process invoked main process?
tried several options, setting process object domain/user/pwd info. nothing worked.
is out there know what's missing here? pointers welcome.
Comments
Post a Comment