Closed ABaldeck closed 9 months ago
Hi! Thanks for opening your first issue here! Please make sure to follow the issue template - so we could help you better!
Created pull-request #5 to add Layout support for UserName / Domain / Password for ImpersonatingWrapper.
NLog.WindowsIdentity ver. 5.3 has been released with Layout-support for UserName
+ Domain
+ Password
:
Thus allowing password="${var:password}"
Thanks a lot!
Hi
Please keep / fill in the relevant info from this template so that we can help you as best as possible.
NLog version: (e.g. 5.2.0)
Platform: .NET7
Current NLog config (xml or C#, if relevant)
I want to update the password with a BackgroundTask Service to log in a network drive:
I try using
variable
,gdc
and getting directly the target:I can log the new password in another class but the targets inside the ImpersonatingWrapper didn't seems to be able to log in our NAS.
If I put the password directly inside the nlog.config everything works fine.