Absent Member.. JasonCantrell Absent Member..
Absent Member..
93 views

[OO Tip] HF_22289 "FS Create Directory" op at "Library/Operations/File System/Windows Only/" fails

Problem:

The "FS Create Directory" operation found at "Library/Operations/File System/Windows Only/" will sometimes return an error when attempting to perform impersonation.

 

The error messages thrown:

 

The trust relationship between this workstation and the primary domain failed or Logon failure: the user has not been granted the requested logon type for this computer.

 

How to reproduce:

1) Import the attached repository
2) Replace the value of HOSTNAME from the inputs of the operations with the hostname of a server in the same domain as the RAS
RAS and target machine are on the same domain -> 
3) Create a System Account with a username\password that doesn't have "Allow log on locally" rights on the target machine
4) Run the flow ->  the first step "FS Create Directory" fails, while the other 2 steps succeed with the same credentials
RAS and target machine are on different domains -> 
5) Create a System Account with a username\password that has "Allow log on locally" rights on the target machine
6) Run the flow -> the first step "FS Create Directory" fails, while the other 2 steps succeed with the same credentials

 Description detail:

Two scenarios:

1) RAS and target machine are on the same domain

If the credentials used by the step are credentials not allowed to log on locally on the RAS, the "FS Create Directory" operation found at "Library/Operations/File System/Windows Only/" fails, while other operations like "FS Exists", "FS Is Directory", "Write to file" and "FS Get Children" work.

2) RAS and target machine are on different domains

If the credentials used by the step are credentials allowed to log on locally on the RAS, the "FS Create Directory" operation found at "Library/Operations/File System/Windows Only/" fails, while other operations like "FS Exists", "FS Is Directory", "Write to file" and "FS Get Children" work.

In both cases, the error thrown is:

{returnCode=1;returnResult=User impersonation failed (Logon failure: the user has not been granted the requested logon type at this computer. (Exception from HRESULT: 0x80070569));Result=1;sessionId=35ed61f7-281b-403e-ba00-1999de0deb9c;exception=dotNET_Commons.ImpersonationException: User impersonation failed (Logon failure: the user has not been granted the requested logon type at this computer. (Exception from HRESULT: 0x80070569)) ---> System.Runtime.InteropServices.COMException (0x80070569): Logon failure: the user has not been granted the requested logon type at this computer. (Exception from HRESULT: 0x80070569)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at dotNET_Commons.ImpersonationUtil.LocalImpersonate(String logon, String password, String domain)
   --- End of inner exception stack trace ---
   at dotNET_Commons.ImpersonationUtil.LocalImpersonate(String logon, String password, String domain)
   at dotNET_Commons.ImpersonationUtil.Impersonate(String[] hosts, String user, String password)
   at dotNET_Commons.Identities.ChangeUserContext(String host, String user, String pass)
   at dotNET_Commons.Identities.ChangeUserContext(ActionRequest req, Boolean prependMachineNameIfNeeded)
   at dotNET_Commons.Identities.ChangeUserContext(ActionRequest req)
   at dotNETWebActions_FileSystem.FSCreateDirectory.Execute(ActionRequest req, ISession s, IActionRegistry reg);}

 

Solution:

Please contact HP OO Support for this hotfix.

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Labels (2)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.