R
RamakrishnanRamar
Guest
Team, We are trying to give access local service account from Mapped path. This service account able to find from parent computer system, after changing the domain to parent system. In code we tried multiple way(including get forest) and it's not useful.
Please help me get the local service account from mapped path which is connected using AD service account and password.
Already try to give the access directly and it's returning error.
DirectorySecurity dirSec = Directory.GetAccessControl(clientFolder);
dirSec.AddAccessRule(new FileSystemAccessRule(@"Local group Name", FileSystemRights.Modify, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, PropagationFlags.None, AccessControlType.Allow));
Error:
Some or all identity references could not be translated.
Trace:
at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean forceSuccess)
at System.Security.Principal.NTAccount.Translate(Type targetType)
at System.Security.AccessControl.CommonObjectSecurity.ModifyAccess(AccessControlModification modification, AccessRule rule, Boolean& modified)
at System.Security.AccessControl.CommonObjectSecurity.AddAccessRule(AccessRule rule)
Please help me find the solution!
Note: We are getting the service account after change the current location(domain) to parent directory(system).
Continue reading...
Please help me get the local service account from mapped path which is connected using AD service account and password.
Already try to give the access directly and it's returning error.
DirectorySecurity dirSec = Directory.GetAccessControl(clientFolder);
dirSec.AddAccessRule(new FileSystemAccessRule(@"Local group Name", FileSystemRights.Modify, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, PropagationFlags.None, AccessControlType.Allow));
Error:
Some or all identity references could not be translated.
Trace:
at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean forceSuccess)
at System.Security.Principal.NTAccount.Translate(Type targetType)
at System.Security.AccessControl.CommonObjectSecurity.ModifyAccess(AccessControlModification modification, AccessRule rule, Boolean& modified)
at System.Security.AccessControl.CommonObjectSecurity.AddAccessRule(AccessRule rule)
Please help me find the solution!
Note: We are getting the service account after change the current location(domain) to parent directory(system).
Continue reading...